Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_IsCharacterADSCondition.c
Go to the documentation of this file.
3{
4 [Attribute("1", desc: "Check if character is aiming with gadget")]
5 protected bool m_bCheckGadget;
6
7 [Attribute("1", desc: "Check if character is aiming down the sights of his personal weapon")]
8 protected bool m_bCheckPersonalWeapon;
9
10 [Attribute("1", desc: "Check if character is aiming down the sights of a weapon that is mouneted on a turret")]
11 protected bool m_bCheckTurretWeapon;
12
13 //------------------------------------------------------------------------------------------------
16 {
17 if (m_bCheckGadget && data.GetGadgetRaised())
18 return GetReturnResult(true);
19
21 {
22 TurretControllerComponent turretController = data.GetCurrentTurretController();
23 if (turretController && turretController.IsWeaponADS())
24 return GetReturnResult(true);
25 }
26
27 return GetReturnResult(m_bCheckPersonalWeapon && data.GetIsCharacterADS());
28 }
29}
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.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
Returns true when character is in any form of ADS.
SCR_FieldOfViewSettings Attribute