Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
RespawnSystemComponent Interface Reference

RespawnSystemComponent should be attached to a gamemode to handle player spawning and respawning. More...

Inheritance diagram for RespawnSystemComponent:
[legend]

Public Member Functions

proto external GenericEntity DoSpawn (string prefab, vector position, vector rotation="0 0 0")
 call to create actual entity from given prefab at given position
 
void OnInit (IEntity owner)
 Called during EOnInit.
 
GenericEntity RequestSpawn (int playerId)
 Called when some player controller requests respawn.
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Protected Member Functions

bool OnRplSave (ScriptBitWriter w)
 Serialize server network data for JIP clients.
 
bool OnRplLoad (ScriptBitReader r)
 Deserialize data received from server on JIP.
 

Detailed Description

RespawnSystemComponent should be attached to a gamemode to handle player spawning and respawning.

Member Function Documentation

◆ DoSpawn()

proto external GenericEntity RespawnSystemComponent.DoSpawn ( string  prefab,
vector  position,
vector  rotation = "0 0 0" 
)

call to create actual entity from given prefab at given position

Parameters
positionXYZ position in world space
rotationXYZ rotation (pitch, yaw, roll) in world space degrees

◆ OnInit()

void RespawnSystemComponent.OnInit ( IEntity  owner)

Called during EOnInit.

Parameters
ownerEntity this component is attached to.

Implemented in SCR_RespawnSystemComponent.

◆ OnRplLoad()

bool RespawnSystemComponent.OnRplLoad ( ScriptBitReader  r)
protected

Deserialize data received from server on JIP.

Parameters
rBit reader instance

Implemented in SCR_RespawnSystemComponent.

◆ OnRplSave()

bool RespawnSystemComponent.OnRplSave ( ScriptBitWriter  w)
protected

Serialize server network data for JIP clients.

Parameters
wBit writer instance

Implemented in SCR_RespawnSystemComponent.

◆ RequestSpawn()

GenericEntity RespawnSystemComponent.RequestSpawn ( int  playerId)

Called when some player controller requests respawn.

Implemented in SCR_RespawnSystemComponent.


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