Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIDecoBehaviorAllowsLooking.c
Go to the documentation of this file.
2{
3 protected SCR_AIUtilityComponent m_Utility;
4
5 //------------------------------------------------------------------------------------------------
6 protected override bool TestFunction(AIAgent owner)
7 {
8 if (!m_Utility)
9 {
10 m_Utility = SCR_AIUtilityComponent.Cast(owner.FindComponent(SCR_AIUtilityComponent));
11 if (!m_Utility)
12 return false;
13 }
14
15 return !m_Utility.m_CurrentBehavior || m_Utility.m_CurrentBehavior.m_bAllowLook;
16 }
17
18 //------------------------------------------------------------------------------------------------
19 protected static override bool VisibleInPalette()
20 {
21 return true;
22 }
23
24 //------------------------------------------------------------------------------------------------
25 protected static override string GetOnHoverDescription()
26 {
27 return "Returns true if current behavior allows looking";
28 }
29};