Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
DeveloperTeleport Class Reference

Static Protected Member Functions

static Object GetPlayerRootForTeleporting (PlayerBase player)
static void OnRPC (PlayerBase player, int rpc_type, ParamsReadContext ctx)
void OnRPCSetPlayerDirection (PlayerBase player, ParamsReadContext ctx)
void OnRPCSetPlayerPosition (PlayerBase player, ParamsReadContext ctx)
static void SetPlayerDirection (PlayerBase player, vector direction)
static void SetPlayerPosition (PlayerBase player, vector position, bool breakSync=false)
static void TeleportAtCursor ()
static void TeleportAtCursorEx ()

Static Protected Attributes

static const float TELEPORT_DISTANCE_MAX = 1000
static const float TELEPORT_DISTANCE_MAX_EX = 500

Detailed Description

Definition at line 1 of file developerteleport.c.

Member Function Documentation

◆ GetPlayerRootForTeleporting()

Object GetPlayerRootForTeleporting ( PlayerBase player)
inlinestaticprotected

◆ OnRPC()

void OnRPC ( PlayerBase player,
int rpc_type,
ParamsReadContext ctx )
inlinestaticprotected

Definition at line 168 of file developerteleport.c.

References OnRPCSetPlayerDirection(), and OnRPCSetPlayerPosition().

Referenced by PluginBase::OnRPC().

◆ OnRPCSetPlayerDirection()

void OnRPCSetPlayerDirection ( PlayerBase player,
ParamsReadContext ctx )
inlinestaticprotected

Definition at line 195 of file developerteleport.c.

References Serializer::Read(), and SetPlayerDirection().

Referenced by OnRPC().

◆ OnRPCSetPlayerPosition()

void OnRPCSetPlayerPosition ( PlayerBase player,
ParamsReadContext ctx )
inlinestaticprotected

Definition at line 182 of file developerteleport.c.

References Serializer::Read(), and SetPlayerPosition().

Referenced by OnRPC().

◆ SetPlayerDirection()

void SetPlayerDirection ( PlayerBase player,
vector direction )
inlinestaticprotected

◆ SetPlayerPosition()

void SetPlayerPosition ( PlayerBase player,
vector position,
bool breakSync = false )
inlinestaticprotected

◆ TeleportAtCursor()

◆ TeleportAtCursorEx()

Field Documentation

◆ TELEPORT_DISTANCE_MAX

const float TELEPORT_DISTANCE_MAX = 1000
staticprotected

Definition at line 3 of file developerteleport.c.

Referenced by TeleportAtCursor().

◆ TELEPORT_DISTANCE_MAX_EX

const float TELEPORT_DISTANCE_MAX_EX = 500
staticprotected

Definition at line 44 of file developerteleport.c.

Referenced by TeleportAtCursorEx().


The documentation for this class was generated from the following file: