Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VehicleDrivingAssistanceCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
5 {
6  [Attribute(defvalue: SCR_Enum.GetDefault(EVehicleDrivingAssistanceMode.FULL), uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EVehicleDrivingAssistanceMode))]
7  EVehicleDrivingAssistanceMode m_eDrivingAssistanceMode;
8 
9  //------------------------------------------------------------------------------------------------
12  override bool IsAvailable(SCR_AvailableActionsConditionData data)
13  {
14  if (!data)
15  return false;
16 
18  {
19  EVehicleDrivingAssistanceMode drivingAssistanceMode = CarControllerComponent.GetDrivingAssistanceMode();
20  bool result = m_eDrivingAssistanceMode == drivingAssistanceMode;
21  return GetReturnResult(result);
22  }
23  else
24  {
25  EVehicleDrivingAssistanceMode drivingAssistanceMode = CarControllerComponent_SA.GetDrivingAssistanceMode();
26  bool result = m_eDrivingAssistanceMode == drivingAssistanceMode;
27  return GetReturnResult(result);
28  }
29  }
30 };
SCR_VehicleDrivingAssistanceCondition
Returns true if character is in a vehicle.
Definition: SCR_VehicleDrivingAssistanceCondition.c:4
SCR_Enum
Definition: SCR_Enum.c:1
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
Attribute
typedef Attribute
Post-process effect of scripted camera.
EVehicleDrivingAssistanceMode
EVehicleDrivingAssistanceMode
Player vehicle driving assistance modes. Individual features may become separate options in future.
Definition: EVehicleDrivingAssistanceMode.c:13
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