Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AISetCarHandBrake.c
Go to the documentation of this file.
2{
3 [Attribute("0", UIWidgets.CheckBox)]
4 protected bool m_bValue;
5
6 protected static const string PORT_VEHICLE = "Vehicle";
7
8 //--------------------------------------------------------------------------------
9 override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
10 {
11 IEntity ent;
12 if (!GetVariableIn(PORT_VEHICLE, ent))
13 return ENodeResult.FAIL;
14
15 if (!ent)
16 return ENodeResult.FAIL;
17
19
20 if (!carController)
21 return ENodeResult.FAIL;
22
23 carController.SetPersistentHandBrake(m_bValue);
24
25 return ENodeResult.SUCCESS;
26 }
27
28 //--------------------------------------------------------------------------------
29 protected static ref TStringArray s_aVarsIn = {
31 };
33 {
34 return s_aVarsIn;
35 }
36
37 //--------------------------------------------------------------------------------
38 static override bool VisibleInPalette()
39 {
40 return true;
41 }
42
43 //--------------------------------------------------------------------------------
44 static override string GetOnHoverDescription()
45 {
46 return "Sets handbrake value of a car.";
47 }
48};
proto external Managed FindComponent(typename typeName)
proto bool GetVariableIn(string name, out void val)
static override string GetOnHoverDescription()
static override bool VisibleInPalette()
static ref TStringArray s_aVarsIn
static const string PORT_VEHICLE
override TStringArray GetVariablesIn()
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
ENodeResult
Definition ENodeResult.c:13
SCR_FieldOfViewSettings Attribute
array< string > TStringArray
Definition Types.c:385