Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CanCharacterLeaveLadderCondition.c
Go to the documentation of this file.
1
5{
6 //------------------------------------------------------------------------------------------------
7 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
8 {
9 CharacterAnimationComponent animComp = data.GetAnimationComponent();
10 if (!animComp)
11 return false;
12
13 // Command ladder is present only when character is using ladder
14 CharacterCommandLadder ladderCMD = animComp.GetCommandHandler().GetCommandLadder();
15 if (!ladderCMD)
16 return false;
17
18 int lrExitState = ladderCMD.CanExitLR();
19 // TODO: once we can differentiate between left and right filter, we should diffrentiate the result ( now it shows A/D to Leave ladder )
20 return GetReturnResult(lrExitState & 0x1 || lrExitState & 0x2);
21 }
22}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.