Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_RequestTransportMessage.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4  vector m_vTargetPosition;
5 
6  //------------------------------------------------------------------------------------------------
7  void SetTargetPosition(vector targetPosition)
8  {
9  m_vTargetPosition = targetPosition;
10  }
11 
12  //------------------------------------------------------------------------------------------------
13  override void OnDelivery(BaseTransceiver receiver, int freq, float quality)
14  {
15  if (m_RequesterMainBase && receiver.GetRadio() && receiver.GetRadio().GetOwner() == m_RequesterMainBase && GetTaskManager())
16  {
18  if (supportEntity)
19  supportEntity.RequestTransport(m_iRequesterID, m_vPosition, m_vTargetPosition);
20  }
21  }
22 };
SCR_TransportTaskSupportEntity
Definition: SCR_TransportTaskSupportEntity.c:8
SCR_RequestTransportMessage
Definition: SCR_RequestTransportMessage.c:2
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_RequestMessage
Definition: SCR_RequestMessage.c:2