Point teleport

From Valve Developer Community
Revision as of 18:04, 10 November 2020 by Loudslappingsounds (talk | contribs)
Jump to navigation Jump to search

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 ([todo internal name (i)]) <targetname>
Name of the entity that will be teleported.
Tip.pngTip:This can be changed if necessary by using AddOutput.


Flags

  • 1 : Teleport Home
  • 2 : Into Duck (episodic)

Inputs

Teleport
Teleport the target entity.
TeleportEntity  (in all games since Counter-Strike: Global Offensive)
Teleport the output parameter box entity.
TeleportToCurrentPos  (in all games since Counter-Strike: Global Offensive)
Teleport to the current position.


Outputs