Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_AIDecoBehaviorAllowsLooking.c
Go to the documentation of this file.
1
class
SCR_AIDecoBehaviorAllowsLooking
:
DecoratorScripted
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
};
DecoratorScripted
Definition
DecoratorScripted.c:13
SCR_AIDecoBehaviorAllowsLooking
Definition
SCR_AIDecoBehaviorAllowsLooking.c:2
SCR_AIDecoBehaviorAllowsLooking::GetOnHoverDescription
static override string GetOnHoverDescription()
Definition
SCR_AIDecoBehaviorAllowsLooking.c:25
SCR_AIDecoBehaviorAllowsLooking::VisibleInPalette
static override bool VisibleInPalette()
Definition
SCR_AIDecoBehaviorAllowsLooking.c:19
SCR_AIDecoBehaviorAllowsLooking::m_Utility
SCR_AIUtilityComponent m_Utility
Definition
SCR_AIDecoBehaviorAllowsLooking.c:3
SCR_AIDecoBehaviorAllowsLooking::TestFunction
override bool TestFunction(AIAgent owner)
Definition
SCR_AIDecoBehaviorAllowsLooking.c:6
scripts
Game
AI
ScriptedNodes
Behavior
SCR_AIDecoBehaviorAllowsLooking.c
Generated by
1.17.0