Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TestScriptedRadioMsgUserAction.c
Go to the documentation of this file.
2 {
3  //------------------------------------------------------------------------------------------------
4  override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
5  {
6  GenericEntity owner = GenericEntity.Cast(pOwnerEntity);
7  BaseRadioComponent radioComp = BaseRadioComponent.Cast(owner.FindComponent(BaseRadioComponent));
8  if (!radioComp)
9  return;
10 
11  BaseTransceiver transmitter = radioComp.GetTransceiver(0);
12  if (!transmitter)
13  return;
14 
15  if (radioComp)
16  {
17  //ScriptedRadioMessage msg();
19  transmitter.BeginTransmission(msg);
20  }
21  }
22 };
ScriptedUserAction
Definition: ScriptedUserAction.c:12
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
SCR_RequestTransportMessage
Definition: SCR_RequestTransportMessage.c:2
BaseTransceiver
Definition: BaseTransceiver.c:12
SCR_TestScriptedRadioMsgUserAction
Definition: SCR_TestScriptedRadioMsgUserAction.c:1