DayZ 1.24
Loading...
Searching...
No Matches
ActionCloseBarrel.c
Go to the documentation of this file.
2{
4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_INTERACTONCE;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
7 m_Text = "#close";
8 }
9
10 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
11 {
12 Object target_object = target.GetObject();
13 if (target_object.IsItemBase())
14 {
16 if (ntarget)
17 {
18 if (!ntarget.IsLocked() && ntarget.IsOpen())
19 return true;
20 }
21 }
22 return false;
23 }
24
26 {
27 Object target_object = action_data.m_Target.GetObject();
29
30 if (ntarget)
31 ntarget.DetermineAction(action_data.m_Player);
32 }
33
35 {
36 Object target_object = action_data.m_Target.GetObject();
38 if (ntarget)
39 ntarget.SoundSynchRemoteReset();
40 }
41}
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
override void OnExecuteServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndServer(ActionData action_data)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597