Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_IsCharacterInControlCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
6 {
7  [Attribute("0")]
8  protected bool m_bIsAvailableInVehicle;
9 
10  //------------------------------------------------------------------------------------------------
11  override bool IsAvailable(SCR_AvailableActionsConditionData data)
12  {
13  if (!data)
14  return false;
15 
16  // Can be controlled in vehicle
17  bool vehicleControl = !data.GetIsCharacterInVehicle();
18  if (m_bIsAvailableInVehicle)
19  vehicleControl = true;
20 
21  // Can character control action
22  bool inControl = !data.GetIsCharacterFalling() &&
23  !data.GetIsCharacterSwimming() &&
24  vehicleControl;
25 
26  return GetReturnResult(inControl);
27  }
28 };
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
SCR_IsCharacterInControlCondition
Definition: SCR_IsCharacterInControlCondition.c:5
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468