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_AIDecoTestIsReloading.c
Go to the documentation of this file.
1
class
SCR_AIDecoTestIsReloading
:
DecoratorTestScripted
2
{
3
SCR_CharacterControllerComponent
m_CharacterController;
4
5
protected
override
bool
TestFunction
(AIAgent agent,
IEntity
controlled)
6
{
7
IEntity
entity = agent.GetControlledEntity();
8
if
(!entity)
9
return
false
;
10
11
if
(!m_CharacterController)
12
{
13
m_CharacterController =
SCR_CharacterControllerComponent
.Cast(entity.
FindComponent
(
SCR_CharacterControllerComponent
));
14
if
(!m_CharacterController)
15
return
false
;
16
}
17
18
return
m_CharacterController.IsReloading();
19
}
20
};
DecoratorTestScripted
Definition
DecoratorTestScripted.c:13
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_AIDecoTestIsReloading
Definition
SCR_AIDecoTestIsReloading.c:2
SCR_AIDecoTestIsReloading::TestFunction
override bool TestFunction(AIAgent agent, IEntity controlled)
Definition
SCR_AIDecoTestIsReloading.c:5
SCR_CharacterControllerComponent
Definition
SCR_CharacterControllerComponent.c:36
scripts
Game
AI
ScriptedNodes
Weapons
SCR_AIDecoTestIsReloading.c
Generated by
1.17.0