Point teleport: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added internal name for keyvalue, cleaned up flags, added Garry's Mod availability for inputs, changed input descriptions to the more informative FGD descriptions)
(→‎Inputs: TeleportEntity and TeleportToCurrentPos are in Portal 2 as well)
Line 21: Line 21:
== Inputs ==
== Inputs ==
{{IO|Teleport|Teleport the target entity.}}
{{IO|Teleport|Teleport the target entity.}}
{{IO|TeleportEntity|param=target_destination|Teleport the entity specified by the parameter override. Use this to teleport an entity other than the one specified in the '''Entity To Teleport''' field.|since=CSGO|also=GMOD}}  
{{IO|TeleportEntity|param=target_destination|Teleport the entity specified by the parameter override. Use this to teleport an entity other than the one specified in the '''Entity To Teleport''' field.|since=P2|also=GMOD}}  
{{IO|TeleportToCurrentPos|Teleport the target entity to wherever the <code>point_teleport</code> entity is currently. The <code>Teleport</code> input teleports to the initial position of the <code>point_teleport</code>, so this input was added to avoid breaking old content.|since=CSGO|also=GMOD}}  
{{IO|TeleportToCurrentPos|Teleport the target entity to wherever the <code>point_teleport</code> entity is currently. The <code>Teleport</code> input teleports to the initial position of the <code>point_teleport</code>, so this input was added to avoid breaking old content.|since=P2|also=GMOD}}  
{{I BaseEntity}}
{{I BaseEntity}}


== Outputs ==
== Outputs ==
{{O BaseEntity|l4d=1}}
{{O BaseEntity|l4d=1}}

Revision as of 22:25, 25 March 2022

Template:Base point It teleports a target entity to this position and angles.

If 'Teleport Home' spawn flag is set, teleports the target entity to its spawn position instead. If object is physically simulated, simulation is turned off when teleported. To teleport the player, use a target keyvalue of !player. To teleport an entity (including a player) that begins an I/O sequence, use a target keyvalue of !activator.

Note.pngNote:The entity does not update its origin or angles, even after it has moved. Use TeleportToCurrentPos instead or trigger_teleport in older games as an alternative.

If "Into Duck" is selected when the player appears they will be in the crouched position.

Note.pngNote:Parent (parentname) is !FGD.

Template:In code

Keyvalues

Entity To Teleport (target) <targetname>
Name of the entity that will be teleported.
Tip.pngTip:This can be changed if necessary by using AddOutput.


Flags

Teleport Home : [1]
Into Duck (episodic) : [2]

Inputs

Teleport
Teleport the target entity.
TeleportEntity <targetnameRedirectInput/string> (in all games since Portal 2) (also in Garry's Mod)
Teleport the entity specified by the parameter override. Use this to teleport an entity other than the one specified in the Entity To Teleport field.
TeleportToCurrentPos  (in all games since Portal 2) (also in Garry's Mod)
Teleport the target entity to wherever the point_teleport entity is currently. The Teleport input teleports to the initial position of the point_teleport, so this input was added to avoid breaking old content.


Outputs