Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_UserActionWithOccupancy.c
Go to the documentation of this file.
2 {
3  protected IEntity m_Occupant;
4 
5  //------------------------------------------------------------------------------------------------
6  bool IsOccupied ()
7  {
8  return m_Occupant != null;
9  }
10 
11  //------------------------------------------------------------------------------------------------
12  override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
13  {
14  if (!m_Occupant)
15  {
16  m_Occupant = pUserEntity;
17  StartAction(pUserEntity);
18  }
19  else
20  {
21  m_Occupant = null;
22  StopAction(pUserEntity);
23  }
24  }
25 
26  //------------------------------------------------------------------------------------------------
27  void StartAction(IEntity pUserEntity);
28 
29  //------------------------------------------------------------------------------------------------
30  void StopAction(IEntity pUserEntity);
31 }
ScriptedUserAction
Definition: ScriptedUserAction.c:12
SCR_UserActionWithOccupancy
Definition: SCR_UserActionWithOccupancy.c:1