Generic_Lift

203:Generic_Lift (tag, speed, delay, type, height)

  • tag: Tag of affected sector, or 0 to use the line's back side.
  • speed: Lift's movement speed. Doom's standard lifts move at 32, and blazing lifts move at 64.
  • delay: Octics before reversing direction. Doom waits for 24 octics (3 seconds).
  • type: Specifies what type of platform this is; see below.
  • height: Distance to move; only used when target is 0.

This special encapsulates Boom's generalized lifts.

Parameters

Delay

Because the largest values used in Boom maps could not fit in tics in the Hexen map format, this generalized special uses values in octics. For reference, the following table provides equivalence for the values available in Boom. Use the values from the octics column. You can also use any arbitrary value you want.

SecondsTicsOcticsNotes
1358
310524Equivalent to vanilla lift delay
4.7165~38
1035080

Type

ValueTargetDefault sound sequence
0Plat_UpByValuePlatform
1Plat_DownWaitUpStayPlatform
2Plat_DownToNearestFloor (does not exist as an explicit action special)Platform
3Plat_DownToLowestCeiling (does not exist as an explicit action special)Platform
4Plat_PerpetualRaiseFloor

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.