Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VehicleHasAnyGroundContactCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
5 {
6  //------------------------------------------------------------------------------------------------
7  override bool IsAvailable(SCR_AvailableActionsConditionData data)
8  {
9  if (!data)
10  return false;
11 
12  VehicleBaseSimulation simulation;
14  {
15  VehicleControllerComponent controller = VehicleControllerComponent.Cast(data.GetCurrentVehicleController());
16  if (controller)
17  simulation = controller.GetBaseSimulation();
18  }
19  else
20  {
21  VehicleControllerComponent_SA controller = VehicleControllerComponent_SA.Cast(data.GetCurrentVehicleController());
22  if (controller)
23  simulation = controller.GetBaseSimulation();
24  }
25 
26  if (!simulation)
27  return false;
28 
29  return GetReturnResult(simulation.HasAnyGroundContact());
30  }
31 }
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
GetIsClientAuthority
override bool GetIsClientAuthority()
Definition: game.c:268
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
SCR_VehicleHasAnyGroundContactCondition
Returns true if vehicle is colliding with ground.
Definition: SCR_VehicleHasAnyGroundContactCondition.c:4