Point teleport: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 3: Line 3:


==Entity Description==
==Entity Description==
An entity that 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]]''.
An entity that 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]]''.
 
If "Into Duck" is selected when the player appears they will be in the crouched position.  


{{in code|class=class_c_point_teleport.html CPointTeleport|file=pointteleport_8cpp-source.html pointteleport.cpp}}
{{in code|class=class_c_point_teleport.html CPointTeleport|file=pointteleport_8cpp-source.html pointteleport.cpp}}

Revision as of 16:15, 22 February 2010

Template:Wrongtitle Template:Base point

Entity Description

An entity that 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.

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

Template:In code

Keyvalues

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.
  • target
<target_destination> Name of the entity that will be teleported.

Flags

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

Inputs

  • Teleport
Teleport the target entity.

Outputs