Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_RequestRefuelMessage.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4  private Vehicle m_RequesterVehicle;
5 
6  //------------------------------------------------------------------------------------------------
7  override void OnDelivery(BaseTransceiver receiver, int freq, float quality)
8  {
9  if (m_RequesterMainBase && receiver.GetRadio() && receiver.GetRadio().GetOwner() == m_RequesterMainBase && GetTaskManager())
10  {
12  if (supportClass)
13  supportClass.RequestRefuel(m_iRequesterID, m_RequesterVehicle, m_vPosition);
14  }
15  }
16 
17  //------------------------------------------------------------------------------------------------
18  void SetRequesterVehicle(Vehicle vehicle)
19  {
20  m_RequesterVehicle = vehicle;
21  }
22 };
GetTaskManager
SCR_BaseTaskManager GetTaskManager()
Definition: SCR_BaseTaskManager.c:7
BaseTransceiver
Definition: BaseTransceiver.c:12
m_vPosition
vector m_vPosition
Definition: SCR_AITalkRequest.c:23
SCR_RequestRefuelMessage
Definition: SCR_RequestRefuelMessage.c:2
SCR_RefuelTaskSupportEntity
Definition: SCR_RefuelTaskSupportEntity.c:8
SCR_RequestMessage
Definition: SCR_RequestMessage.c:2