Point teleport: Difference between revisions
Jump to navigation
Jump to search
Note:The entity does not update its origin or angles, even after it has moved. Use
Note:Parent
(ent template) |
No edit summary |
||
Line 4: | Line 4: | ||
{{note|The entity does not update its origin or angles, even after it has moved. Use <code>TeleportToCurrentPos</code> instead or {{ent|trigger_teleport}} in older games as an alternative.}} | {{note|The entity does not update its origin or angles, even after it has moved. Use <code>TeleportToCurrentPos</code> instead or {{ent|trigger_teleport}} in older games as an alternative.}} | ||
If "Into Duck" is selected when the player appears they will be in the crouched position. | If "Into Duck" is selected when the player appears they will be in the crouched position. | ||
{{note|'''Parent''' <code>(parentname)</code> is {{not in FGD}}.}} | |||
{{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 18:04, 10 November 2020
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.

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.

(parentname)
is !FGD.Keyvalues
- Entity To Teleport ([todo internal name (i)]) <targetname>
- Name of the entity that will be teleported.
Tip: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
)
- Teleport the output parameter box entity.
- TeleportToCurrentPos (in all games since
)
- Teleport to the current position.