DayZ 1.24
Loading...
Searching...
No Matches
ActionExitLadder Class Reference
Inheritance diagram for ActionExitLadder:
[legend]
Collaboration diagram for ActionExitLadder:
[legend]

Private Member Functions

void ActionExitLadder ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 
override bool IsInstant ()
 
override bool UseAcknowledgment ()
 
override bool CanBeUsedOnLadder ()
 

Detailed Description

Definition at line 1 of file ActionExitLadder.c.

Constructor & Destructor Documentation

◆ ActionExitLadder()

void ActionExitLadder::ActionExitLadder ( )
inlineprivate

Definition at line 3 of file ActionExitLadder.c.

4 {
5 m_Text = "#exit_ladder";
6 }
string m_Text
Definition ActionBase.c:49

References m_Text.

Member Function Documentation

◆ ActionCondition()

override bool ActionExitLadder::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 14 of file ActionExitLadder.c.

15 {
16 HumanCommandLadder cl = player.GetCommand_Ladder();
17 if (cl && cl.CanExit())
18 return true;
19
20 //if ( action_data.m_Player.IsOnLadder() ) return true;
21 return false;
22 }

◆ CanBeUsedOnLadder()

override bool ActionExitLadder::CanBeUsedOnLadder ( )
inlineprivate

Definition at line 47 of file ActionExitLadder.c.

48 {
49 return true;
50 }

◆ CreateConditionComponents()

override void ActionExitLadder::CreateConditionComponents ( )
inlineprivate

Definition at line 8 of file ActionExitLadder.c.

9 {
12 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ IsInstant()

override bool ActionExitLadder::IsInstant ( )
inlineprivate

Definition at line 37 of file ActionExitLadder.c.

38 {
39 return true;
40 }

◆ Start()

override void ActionExitLadder::Start ( ActionData action_data)
inlineprivate

Definition at line 25 of file ActionExitLadder.c.

26 {
27 super.Start(action_data);
28 HumanCommandLadder cl = action_data.m_Player.GetCommand_Ladder();
29 if (cl)
30 cl.Exit();
31 }

◆ UseAcknowledgment()

override bool ActionExitLadder::UseAcknowledgment ( )
inlineprivate

Definition at line 42 of file ActionExitLadder.c.

43 {
44 return false;
45 }

The documentation for this class was generated from the following file: