This shows you the differences between two versions of the page.
xg:class:line_teleport [2017-03-17 10:19] – skyjake | xg:class:line_teleport [2017-03-17 10:19] (current) – [Parameters] skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Line teleport (XG class) ====== | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | Used to teleport activators of [[line]]s of this class to a relative position along another [[line]] in the map. This is commonly used to create seamless teleports in maps which attempt to give the impression of 3D structures. | ||
+ | |||
+ | |||
+ | ===== 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| Teleport Sound| [[soundid]]| The sound to play when teleporting or if zero; no sound will be played. | | ||
+ | | Ip4| Exit Side| integer| If true (non-zero), the activator will exit from the back side of the referenced line. Else, the activator will exit from the front. | | ||
+ | | Ip5| Always Stomp| integer| If true (non-zero), if there is another mobj in the teleport destination it will be stomped ([[telefrag|telefragged]]) by the activator. | | ||
+ | |||
+ | ===== Examples ===== | ||
+ | | ||
+ | Line Type { | ||
+ | ID = 5020 | ||
+ | Flags = player_cross | ||
+ | Flags2 = when_act | any | ||
+ | Class = line_teleport | ||
+ | Type = timed_off | ||
+ | Count = -1 | ||
+ | Target Ref = " | ||
+ | Target Num = 123 | ||
+ | No Flash = 1 | ||
+ | Teleport Sound = 0 | ||
+ | Exit Side = 0 | ||
+ | Always Stomp = 1 | ||
+ | } | ||
+ | |||
+ | The line is activated when the player crosses it. On activation, the player will be teleported to the front side of line number 123. No teleport effects will be rendered and there will be no teleport sound. If there are any mobjs at the teleport destination, | ||
+ | |||
+ | |||