[This is preliminary documentation and is subject to change.]
Teleports the local player to the specified position.
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
public static void TeleportLocalPlayer( Vector3 position, bool toGround )
Public Shared Sub TeleportLocalPlayer ( position As Vector3, toGround As Boolean )
public: static void TeleportLocalPlayer( Vector3 position, bool toGround )
- Type: RageVector3
The position to teleport the local player to.
- Type: SystemBoolean
If true, the Z component of the position will be ignored, and the player will be placed on the ground.
Note, that this requires execution over multiple ticks! (That is, the plugin will yield during execution of this method, if this parameter is set to true>)
If the game is paused, it be unpaused.