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_CanCharacterLeaveLadderCondition.c
Go to the documentation of this file.
1
3
[
BaseContainerProps
()]
4
class
SCR_CanCharacterLeaveLadderCondition
:
SCR_AvailableActionCondition
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
}
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
CharacterAnimationComponent
Definition
CharacterAnimationComponent.c:13
CharacterCommandLadder
Definition
CharacterCommandLadder.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_CanCharacterLeaveLadderCondition
Definition
SCR_CanCharacterLeaveLadderCondition.c:5
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Character
SCR_CanCharacterLeaveLadderCondition.c
Generated by
1.17.0