Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CanTurnOutCondition.c
Go to the documentation of this file.
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 //------------------------------------------------------------------------------------------------
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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
A single available action condition representation.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute