Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WeaponDeployCondition.c
Go to the documentation of this file.
3{
4 protected bool m_bResultCache;
5 protected int m_iCounter;
6
8 protected const int SLEEP_COUNT = 3;
9
10 //------------------------------------------------------------------------------------------------
12 {
13 if (m_iCounter < 1)
14 {
15 CharacterControllerComponent controller = data.GetCharacterController();
16 m_bResultCache = GetReturnResult(!controller.GetIsWeaponDeployed() && controller.CanDeployWeapon());
17 }
18
20 m_iCounter++;
21 else
22 m_iCounter = 0;
23
24 return m_bResultCache;
25 }
26}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.
const int SLEEP_COUNT
number of execution during which we want to use cached results to avoid checking CanDeployWeapon too ...
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)