This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
xg:class:teleport [2019-11-26 08:24] – skyjake | xg:class:teleport [2019-11-26 08:41] (current) – [Parameters] skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Teleport (XG class) ====== | ||
+ | |||
+ | Class = teleport | ||
+ | |||
+ | Teleports the activator to the first teleport exit in the target [[sector]]. Similar to the original Doom teleport [[line special]]. | ||
+ | |||
+ | |||
+ | ===== Parameters ===== | ||
+ | |||
+ | |||
+ | ^ Prm ^ Name ^ Type ^ Meaning ^ | ||
+ | | Ip0,Ip1| Target Ref, | ||
+ | | Ip2| No Flash| integer | If true (non-zero), the teleport flash and any associated effects will not be used. | | ||
+ | | Ip3| No Sound| integer | If true (non-zero), the teleport sound will not be played. | | ||
+ | | Ip4| Always Start Stomp| integer| If true (non-zero), if there is another mobj in the teleport destination it will be stomped (telefragged) by the activator. | | ||
+ | |||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | | ||
+ | Line Type { | ||
+ | ID = 5020 | ||
+ | Flags = player_cross | ||
+ | Flags2 = when_act | any | ||
+ | Class = teleport | ||
+ | Type = timed_off | ||
+ | Count = -1 | ||
+ | Target Ref = " | ||
+ | No Flash = 1 | ||
+ | No Sound = 1 | ||
+ | Always Stomp = 1 | ||
+ | } | ||
+ | |||
+ | The line is activated when the player crosses it. On activation, the player will be teleported to the first teleport destination found within the first sector found whose tag matches the activated line. No teleport effects will be rendered and there will be no teleport sound. If there are any mobjs at the teleport destination, | ||
+ | |||
+ | |||