Point teleport: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=point_teleport}}
{{base point|point_teleport}} It teleports a target entity to this position and angles.  
{{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 '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]]''.
Line 11: Line 7:
{{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}}


==Keyvalues==
== Keyvalues ==
*{{KV Targetname}}
{{KV|Entity To Teleport|target_destination|Name of the entity that will be teleported.}}
*{{KV Angles}}
{{KV Targetname}}
*'''target'''
{{KV Angles}}
:<target_destination> Name of the entity that will be teleported.


==Flags==
== Flags ==
*1 : Teleport Home
* 1 : Teleport Home
*2 : Into Duck (episodic)
* 2 : Into Duck (episodic)


==Inputs==
== Inputs ==
*{{i Targetname}}
{{IO|Teleport|Teleport the target entity.}}
*'''Teleport'''
{{I Targetname}}
:Teleport the target entity.


==Outputs==
== Outputs ==
*{{o Targetname}}
{{O Targetname}}

Revision as of 05:37, 28 July 2011

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.

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.


Outputs