Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CharacterFreelookCondition.c
Go to the documentation of this file.
1
4{
5 [Attribute(uiwidget: UIWidgets.CheckBox, desc: "Available only if freelook is toggled")]
6 protected bool m_bToggled;
7
8 [Attribute(uiwidget: UIWidgets.CheckBox, desc: "Available only if freelook is not toggled")]
9 protected bool m_bNotToggled;
10
11 [Attribute(uiwidget: UIWidgets.CheckBox, desc: "Available only if freelook is forced")]
12 protected bool m_bForced;
13
14 [Attribute(uiwidget: UIWidgets.CheckBox, desc: "Available only if freelook is not forced")]
15 protected bool m_bNotForced;
16
17 //------------------------------------------------------------------------------------------------
21 {
22 bool result = data.GetIsCharacterFreelook();
23
24 if (result)
25 {
26 bool toggled = data.GetIsCharacterFreelookToggled();
27 if (m_bToggled)
28 result = result && toggled;
29
30 if (m_bNotToggled)
31 result = result && !toggled;
32
33 bool forced = data.GetIsCharacterFreelookForced();
34 if (m_bForced)
35 result = result && forced;
36
37 if (m_bNotForced)
38 result = result && !forced;
39 }
40
41 return GetReturnResult(result);
42 }
43}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
A single available action condition representation.
Returns true if character is freelooking with specified conditions.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute