Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VehicleEngineOnCondition.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 
13  {
14  VehicleControllerComponent controller = VehicleControllerComponent.Cast(data.GetCurrentVehicleController());
15  if (!controller)
16  return false;
17 
18  bool result = controller.IsEngineOn();
19  return GetReturnResult(result);
20  }
21  else
22  {
23  VehicleControllerComponent_SA controller = VehicleControllerComponent_SA.Cast(data.GetCurrentVehicleController());
24  if (!controller)
25  return false;
26 
27  bool result = controller.IsEngineOn();
28  return GetReturnResult(result);
29  }
30 
31  }
32 };
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_VehicleEngineOnCondition
Returns true if current vehicle engine is on.
Definition: SCR_VehicleEngineOnCondition.c:4
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