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_CanTurnOutCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_CanTurnOutCondition
:
SCR_AvailableActionCondition
3
{
4
[
Attribute
(
desc
:
"Requires the hatch to be open"
)]
5
protected
bool
m_bRequireOpenHatch
;
6
7
[
Attribute
(
desc
:
"Should it be required that character is turned out"
)]
8
protected
bool
m_bCharacterTurnedOut
;
9
10
//------------------------------------------------------------------------------------------------
11
override
bool
IsAvailable
(notnull
SCR_AvailableActionsConditionData
data
)
12
{
13
ChimeraCharacter
character =
data
.GetCharacter();
14
if
(!character)
15
return
GetReturnResult
(
false
);
16
17
CompartmentAccessComponent compartmentAccessComp = character.GetCompartmentAccessComponent();
18
if
(!compartmentAccessComp)
19
return
GetReturnResult
(
false
);
20
21
if
(compartmentAccessComp.IsGettingIn() || compartmentAccessComp.IsGettingOut() || compartmentAccessComp.IsSwitchingSeatsAnim())
22
return
GetReturnResult
(
false
);
23
24
BaseCompartmentSlot
compartment = compartmentAccessComp.GetCompartment();
25
if
(!compartment || !compartment.CanTurnOut())
26
return
GetReturnResult
(
false
);
27
28
if
(compartment.IsOccupantTurnedOut() !=
m_bCharacterTurnedOut
)
29
return
GetReturnResult
(
false
);
30
31
BaseCompartmentManagerComponent
compartmentManager = compartment.GetManager();
32
return
GetReturnResult
(compartmentManager && compartmentManager.IsDoorOpen(compartment.GetTurnOutDoorIndex()) ==
m_bRequireOpenHatch
);
33
}
34
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
BaseCompartmentManagerComponent
Definition
BaseCompartmentManagerComponent.c:13
BaseCompartmentSlot
Definition
BaseCompartmentSlot.c:2
ChimeraCharacter
Definition
ChimeraCharacter.c:13
SCR_AvailableActionCondition
A single available action condition representation.
Definition
SCR_AvailableActionCondition.c:4
SCR_AvailableActionCondition::GetReturnResult
bool GetReturnResult(bool desiredResult)
Definition
SCR_AvailableActionCondition.c:22
SCR_AvailableActionsConditionData
Definition
SCR_AvailableActionsConditionData.c:6
SCR_CanTurnOutCondition
Definition
SCR_CanTurnOutCondition.c:3
SCR_CanTurnOutCondition::IsAvailable
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
Definition
SCR_CanTurnOutCondition.c:11
SCR_CanTurnOutCondition::m_bCharacterTurnedOut
bool m_bCharacterTurnedOut
Definition
SCR_CanTurnOutCondition.c:8
SCR_CanTurnOutCondition::m_bRequireOpenHatch
bool m_bRequireOpenHatch
Definition
SCR_CanTurnOutCondition.c:5
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Vehicle
SCR_CanTurnOutCondition.c
Generated by
1.17.0