Class TriggerTeleport
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
trigger_teleport. Teleports the player to its target entity when they enter the volume, keeping their velocity.
csharp
public sealed class TriggerTeleportInheritance
Methods
LoadAll(IReadOnlyList<Entity>, IFileLoader)
Loads every trigger_teleport in the map. The volume comes from the trigger's own model, which holds its brush hulls.
csharp
public static List<TriggerTeleport> LoadAll(IReadOnlyList<EntityLump.Entity> entities, IFileLoader fileLoader)Parameters
entities IReadOnlyList<EntityLump.Entity>
All entities of the loaded map.
fileLoader IFileLoader
Loader used to resolve the trigger models.
Returns
Touch(PlayerMovement)
Teleports the player on the frame they enter the volume.
csharp
public void Touch(PlayerMovement movement)Parameters
movement PlayerMovement
The player to test against the volume.

