PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ScriptRPC Class Reference

Private Member Functions

void ScriptRPC ()
 
void ~ScriptRPC ()
 
proto native void Reset ()
 Reset internal buffer which stores written data. After Reset is callded, ScriptRPC can be used again as "new" ScriptRPC.
 
proto native void Send (Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
 Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on server, RPC is executed on all clients. Do not reset ScriptRPC internal state, so if is Send called multiple times in a row, it sends same (previously written) data again and again, until is Reset() called.
 

Constructor & Destructor Documentation

◆ ScriptRPC()

void ScriptRPC ( )
private

◆ ~ScriptRPC()

void ~ScriptRPC ( )
private

Member Function Documentation

◆ Reset()

proto native void Reset ( )
private

Reset internal buffer which stores written data. After Reset is callded, ScriptRPC can be used again as "new" ScriptRPC.

◆ Send()

proto native void Send ( Object  target,
int  rpc_type,
bool  guaranteed,
PlayerIdentity  recipient = NULL 
)
private

Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on server, RPC is executed on all clients. Do not reset ScriptRPC internal state, so if is Send called multiple times in a row, it sends same (previously written) data again and again, until is Reset() called.

Parameters
targetobject on which remote procedure is called, when NULL, RPC is evaluated by CGame as global
rpc_typeuser defined identification of RPC
recipientspecified client to send RPC to. If NULL, RPC will be send to all clients (specifying recipient increase security and decrease network traffic)

Referenced by RequestPlayerInfo(), PluginBase::RequestUniversalTemperatureSources(), PluginBase::SendDebug(), MissionBase::SendMuteListToServer(), NotificationSystem::SendNotificationToPlayerIdentity(), NotificationSystem::SendNotificationToPlayerIdentityExtended(), SendRPC(), ScriptConsoleItemsTab::SpawnPreset(), and MissionBase::SyncRespawnModeInfo().


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