Arma Reforger Script API
Loading...
Searching...
No Matches
ScriptedRadioComponent Interface Reference
Inheritance diagram for ScriptedRadioComponent:
BaseRadioComponent GameComponent SCR_CoverageRadioComponent

Public Member Functions

void OnPostInit (IEntity owner)
 Called after all components are initialized.
 
void OnInit (IEntity owner)
 Called during EOnInit.
 
void OnFrame (IEntity owner, float timeSlice)
 Called during EOnFrame.
 
- Public Member Functions inherited from BaseRadioComponent
proto external IEntity GetOwner ()
 
proto external int TransceiversCount ()
 
proto external BaseTransceiver GetTransceiver (int idx)
 
proto external void SetEncryptionKey (string key)
 
proto external string GetEncryptionKey ()
 
proto external void SetPower (bool powered)
 Sets the power state of whole radio.
 
proto external bool IsPowered ()
 
proto external bool IsEditorRadio ()
 
proto external void SetTransceiverFrequency (BaseTransceiver transceiver, int freq)
 Set frequency of transceiver and sync with server.
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Additional Inherited Members

- Public Attributes inherited from BaseRadioComponent
ref ScriptInvoker< BaseTransceiver, int, int > m_OnTansceiverFrequencyChangedInvoker = new ScriptInvoker<BaseTransceiver, int, int>()
 
ref ScriptInvoker< BaseTransceiver, float, float > m_OnTansceiverRangeChangedInvoker = new ScriptInvoker<BaseTransceiver, float, float>()
 
ref ScriptInvoker< bool > m_OnPowerChanged = new ScriptInvoker<bool>()
 
ref ScriptInvoker< string > m_OnEncryptionKeyChanged = new ScriptInvoker<string>()
 
- Protected Member Functions inherited from BaseRadioComponent
void OnTansceiverFrequencyChanged (BaseTransceiver transceiver, int oldFreq, int newFreq)
 Event invoked on client and server when frequency is changed.
 
void OnTansceiverRangeChanged (BaseTransceiver transceiver, float oldRange, float newRange)
 Event invoked on client and server when range is changed.
 
void OnPowerChanged (bool powered)
 Event invoked on client and server when power is changed.
 
void OnEncryptionKeyChanged (string newKey)
 Event invoked on client and server when encryption key is changed.
 

Member Function Documentation

◆ OnFrame()

void ScriptedRadioComponent.OnFrame ( IEntity owner,
float timeSlice )

Called during EOnFrame.

Parameters
ownerEntity this component is attached to.
timeSliceDelta time since last update.

◆ OnInit()

void ScriptedRadioComponent.OnInit ( IEntity owner)

Called during EOnInit.

Parameters
ownerEntity this component is attached to.

Implemented in SCR_CoverageRadioComponent.

◆ OnPostInit()

void ScriptedRadioComponent.OnPostInit ( IEntity owner)

Called after all components are initialized.

Parameters
ownerEntity this component is attached to.

Implemented in SCR_CoverageRadioComponent.


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