Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionuseundergroundlever.c
Go to the documentation of this file.
1
class
ActionUseUndergroundLever
:
ActionInteractBase
2
{
3
void
ActionUseUndergroundLever
()
4
{
5
m_CommandUID
=
DayZPlayerConstants
.CMD_ACTIONMOD_OPENDOORFW;
6
m_StanceMask
=
DayZPlayerConstants
.STANCEMASK_CROUCH |
DayZPlayerConstants
.STANCEMASK_ERECT;
7
m_Text
=
"#use"
;
8
}
9
10
override
void
CreateConditionComponents
()
11
{
12
m_ConditionItem
=
new
CCINone
;
13
m_ConditionTarget
=
new
CCTCursor
;
14
}
15
16
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item )
17
{
18
Land_Underground_Panel
trgt =
Land_Underground_Panel
.Cast(target.GetObject());
19
20
if
( !trgt )
21
return
false
;
22
23
return
(trgt.CanInteract());
24
}
25
26
override
void
OnStartServer
(
ActionData
action_data )
27
{
28
super.OnStartServer(action_data);
29
30
Land_Underground_Panel
target =
Land_Underground_Panel
.Cast(action_data.m_Target.GetObject());
31
32
if
(!target)
33
return
;
34
35
target.Interact();
36
}
37
38
override
bool
IsLockTargetOnUse
()
39
{
40
return
false
;
41
}
42
};
ActionData
ActionBase ActionData
Definition
actionbase.c:30
ActionTarget
class ActionTargets ActionTarget
ActionBase::m_Text
string m_Text
Definition
actionbase.c:64
ActionBase::m_ConditionItem
ref CCIBase m_ConditionItem
Definition
actionbase.c:70
ActionBase::m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition
actionbase.c:71
ActionBase::m_StanceMask
int m_StanceMask
Definition
actionbase.c:68
ActionInteractBase::ActionInteractBase
void ActionInteractBase()
Definition
actioninteractbase.c:43
ActionUseUndergroundLever::ActionUseUndergroundLever
void ActionUseUndergroundLever()
Definition
actionuseundergroundlever.c:3
ActionUseUndergroundLever::CreateConditionComponents
override void CreateConditionComponents()
Definition
actionuseundergroundlever.c:10
ActionUseUndergroundLever::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionuseundergroundlever.c:16
ActionUseUndergroundLever::IsLockTargetOnUse
override bool IsLockTargetOnUse()
Definition
actionuseundergroundlever.c:38
ActionUseUndergroundLever::OnStartServer
override void OnStartServer(ActionData action_data)
Definition
actionuseundergroundlever.c:26
AnimatedActionBase::m_CommandUID
int m_CommandUID
Definition
animatedactionbase.c:143
CCINone
Definition
ccinone.c:2
CCTCursor
Definition
cctcursor.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
DayZPlayerConstants
DayZPlayerConstants
defined in C++
Definition
dayzplayer.c:602
Land_Underground_Panel
void Land_Underground_Panel()
Definition
land_underground_panel.c:38
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
interact
actionuseundergroundlever.c
Generated by
1.17.0