Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIDecoTestDoorIsOpen.c
Go to the documentation of this file.
1
class
SCR_AIDecoTestDoorIsOpen
: DecoratorTestScripted
2
{
3
private
DoorComponent
m_doorComponent;
4
5
//------------------------------------------------------------------------------------------------
6
protected
override
bool
TestFunction(AIAgent agent, IEntity controlled)
7
{
8
if
(controlled)
9
{
10
if
(!m_doorComponent)
11
m_doorComponent =
DoorComponent
.Cast(controlled.FindComponent(
DoorComponent
));
12
if
(!m_doorComponent)
13
return
false
;
14
return
m_doorComponent.IsOpen();
15
}
16
return
false
;
17
}
18
};
DoorComponent
Definition:
DoorComponent.c:12
SCR_AIDecoTestDoorIsOpen
Definition:
SCR_AIDecoTestDoorIsOpen.c:1
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
AI
ScriptedNodes
Behavior
SCR_AIDecoTestDoorIsOpen.c
Generated by
1.8.17