Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionexitladder.c
Go to the documentation of this file.
1
class
ActionExitLadder
:
ActionInteractBase
2
{
3
void
ActionExitLadder
()
4
{
5
m_Text
=
"#exit_ladder"
;
6
}
7
8
override
void
CreateConditionComponents()
9
{
10
m_ConditionItem
=
new
CCINone
;
11
m_ConditionTarget
=
new
CCTNone
;
12
}
13
14
override
bool
ActionCondition(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
15
{
16
HumanCommandLadder
cl = player.GetCommand_Ladder();
17
if
(cl && cl.CanExit())
18
{
19
return
true
;
20
}
21
22
//if ( action_data.m_Player.IsOnLadder() ) return true;
23
return
false
;
24
}
25
27
override
void
Start(
ActionData
action_data )
28
{
29
super.Start( action_data );
30
HumanCommandLadder
cl = action_data.m_Player.GetCommand_Ladder();
31
if
(cl)
32
{
33
cl.Exit();
34
}
35
}
36
37
38
/*override void OnCompleteServer( ActionData action_data )
39
{
40
}*/
41
override
bool
IsInstant()
42
{
43
return
true
;
44
}
45
46
override
bool
UseAcknowledgment()
47
{
48
return
false
;
49
}
50
51
override
bool
CanBeUsedOnLadder()
52
{
53
return
true
;
54
}
55
};
ItemBase
Definition:
inventoryitem.c:730
CCINone
Definition:
ccinone.c:1
CCTNone
Definition:
cctnone.c:1
ActionInteractBase
Definition:
actioninteractbase.c:54
PlayerBase
Definition:
playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition:
actionbase.c:20
ActionExitLadder
Definition:
actionexitladder.c:1
m_Text
protected string m_Text
Definition:
actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition:
actionbase.c:55
HumanCommandLadder
Definition:
human.c:644
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition:
actionbase.c:56
DAYZ
scripts_v1.24.157551
scripts
world
classes
useractionscomponent
actions
interact
actionexitladder.c
Generated by
1.8.17