Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VehiclePersistentBrakeEngagedCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
5 {
6  //------------------------------------------------------------------------------------------------
9  override bool IsAvailable(SCR_AvailableActionsConditionData data)
10  {
11  if (!data)
12  return false;
13 
15  {
16  CarControllerComponent carController = CarControllerComponent.Cast(data.GetCurrentVehicleController());
17  if (!carController)
18  return false;
19 
20  bool result = carController.GetPersistentHandBrake();
21  return GetReturnResult(result);
22  }
23  else
24  {
25  CarControllerComponent_SA carController = CarControllerComponent_SA.Cast(data.GetCurrentVehicleController());
26  if (!carController)
27  return false;
28 
29  bool result = carController.GetPersistentHandBrake();
30  return GetReturnResult(result);
31  }
32  }
33 };
SCR_VehiclePersistentBrakeEngagedCondition
Returns true if character is in a vehicle.
Definition: SCR_VehiclePersistentBrakeEngagedCondition.c:4
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