Point teleport: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Minor edit)
m (Minor edit)
Line 18: Line 18:
== Inputs ==
== Inputs ==
{{IO|Teleport|Teleport the target entity.}}
{{IO|Teleport|Teleport the target entity.}}
{{IO|TeleportEntity|Teleport the output parameter box entity.}} |since=CSGO
{{IO|TeleportEntity|Teleport the output parameter box entity. |since=CSGO}}
{{IO|TeleportToCurrentPos|Teleport to the current position.}} |since=CSGO
{{IO|TeleportToCurrentPos|Teleport to the current position.|since=CSGO}}
{{I Targetname}}
{{I Targetname}}


== Outputs ==
== Outputs ==
{{O Targetname}}
{{O Targetname}}

Revision as of 10:51, 30 January 2016

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.

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

Template:In code

Keyvalues

Entity To Teleport ([todo internal name (i)]) <targetname>
Name of the entity that will be teleported.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

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