Linedef type 457
Linedef type 457, Track Object's Angle, is a type of linedef executor which, when triggered, starts tracking whether the triggering Object is facing a specified Object Angle Anchor. If the Object faces too far away from the anchor for too long, another linedef executor will be executed. This effect is used in Tutorial Zone to train players how to move while keeping their view on another Object.
Setup
Place an Object Angle Anchor at the desired position in the map. Tag this linedef to the sector the anchor is placed in and make sure the tag is not used by any other sector. Once any Object triggers this linedef executor, the game will start tracking whether the Object is facing towards the anchor. The Object does not have to be a player. The front X offset determines how far away the tracked Object may face from the anchor, measured as an angle in degrees. The front Y offset determines how long the tracked Object may look away from the anchor, measured in tics. If the tracked Object faces away from the anchor by more than the specified angle for more than the specified number of tics, a trigger linedef is called. The tag of the trigger linedef is specified by the back X offset.
Normally, the tracking is stopped once the trigger linedef is executed for the first time. If Flag [7] / No Midtexture Skew / Effect 2 is set, the tracking continues afterwards. If the tracked Object triggers a linedef executor with linedef type 458, the tracking is also stopped.
|
Sample
- Example file: Ex_ld457_trackobjectsangle.wad (MAP01)
- When the player steps on the grass, object angle tracking starts.
- When the player turns away from the sunflowers, he teleports to the
REDFLR
floor.
How to use |
---|
|