DayZ 1.24
Loading...
Searching...
No Matches
ActionUseUndergroundLever.c
Go to the documentation of this file.
2{
4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
7 m_Text = "#use";
8 }
9
11 {
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
27 {
28 Land_Underground_Panel target = Land_Underground_Panel.Cast(action_data.m_Target.GetObject());
29
30 if (!target)
31 return;
32
33 target.Interact();
34 }
35};
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
override void OnStartServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597