Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_IsUsingVariableSights.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
6 {
7 BaseWeaponComponent weapon = data.GetCurrentWeapon();
8 if (!weapon)
9 return false;
10
11 BaseSightsComponent sights = weapon.GetSights();
12 if (!sights)
13 return false;
14
15 SCR_BaseVariableSightsFOVInfo info = SCR_BaseVariableSightsFOVInfo.Cast(sights.GetFOVInfo());
16 return GetReturnResult(info && info.GetCount() > 1);
17 }
18}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.