Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
RplTestComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_RplTestComponentClass
 

Functions

void Do_TestRpc (int testNum)
 
void RpcAsk_TestRpc (int testNum)
 
void RpcDo_TestRpc (int testNum)
 
void RpcAsk_ChangePropValue (float timeSlice)
 
void OnTestChanged ()
 
void Do_TestFire ()
 
void RpcAsk_TestFire ()
 
void RpcDo_TestFire ()
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
override void EOnInit (IEntity owner)
 Initialise this component with data from FactionsManager. More...
 
override void EOnFrame (IEntity owner, float timeSlice)
 
void SCR_RplTestComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
 

Variables

SCR_RplTestComponentClass m_CharacterOwner = null
 
private RplComponent m_RplComponent = null
 
private int m_iTest = 0
 
float m_fdelay = 0
 

Function Documentation

◆ Do_TestFire()

void Do_TestFire ( )

Definition at line 83 of file RplTestComponent.c.

◆ Do_TestRpc()

void Do_TestRpc ( int  testNum)
Parameters
[in]testNum

Definition at line 23 of file RplTestComponent.c.

◆ EOnFrame()

override void EOnFrame ( IEntity  owner,
float  timeSlice 
)

Definition at line 137 of file RplTestComponent.c.

◆ OnTestChanged()

void OnTestChanged ( )

Definition at line 76 of file RplTestComponent.c.

◆ RpcAsk_ChangePropValue()

void RpcAsk_ChangePropValue ( float  timeSlice)

Server-only execution

Parameters
[in]timeSlice

Definition at line 58 of file RplTestComponent.c.

◆ RpcAsk_TestFire()

void RpcAsk_TestFire ( )

Definition at line 91 of file RplTestComponent.c.

◆ RpcAsk_TestRpc()

void RpcAsk_TestRpc ( int  testNum)

Send request to the server to print a message everywhere

Parameters
[in]testNum

Definition at line 32 of file RplTestComponent.c.

◆ RpcDo_TestFire()

void RpcDo_TestFire ( )

Definition at line 115 of file RplTestComponent.c.

◆ RpcDo_TestRpc()

void RpcDo_TestRpc ( int  testNum)

Broadcast. When called from server this is executed everywhere but on the server. When called on client, this is executed only on the client.

NOTE: The caller of the RPC needs to provide exectly one integral argument "testNum". Note, max. 16 args are possible in script. This restriction applies universally not just to RPCs but for all script methods in general

Parameters
[in]testNum

Definition at line 49 of file RplTestComponent.c.

◆ SCR_RplTestComponent()

void SCR_RplTestComponent ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)
Parameters
[in]src
[in]ent
[in]parent

Definition at line 176 of file RplTestComponent.c.

Variable Documentation

◆ m_CharacterOwner

SCR_RplTestComponentClass m_CharacterOwner = null

◆ m_fdelay

float m_fdelay = 0

Definition at line 18 of file RplTestComponent.c.

◆ m_iTest

private int m_iTest = 0

Definition at line 16 of file RplTestComponent.c.

◆ m_RplComponent

private RplComponent m_RplComponent = null

Definition at line 9 of file RplTestComponent.c.