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

Private Member Functions

void ActionCloseBarrelHoles ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionCloseBarrelHoles.c.

Constructor & Destructor Documentation

◆ ActionCloseBarrelHoles()

void ActionCloseBarrelHoles::ActionCloseBarrelHoles ( )
inlineprivate

Definition at line 3 of file ActionCloseBarrelHoles.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_INTERACTONCE;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
7 m_Text = "#close";
8 }
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 10 of file ActionCloseBarrelHoles.c.

11 {
12 Object target_object = target.GetObject();
13 if (target_object.IsItemBase())
14 {
16 if (ntarget)
17 {
18 if (ntarget.IsOpen())
19 return true;
20 }
21 }
22 return false;
23 }

◆ OnEndServer()

override void ActionCloseBarrelHoles::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 34 of file ActionCloseBarrelHoles.c.

35 {
36 Object target_object = action_data.m_Target.GetObject();
38 if (ntarget)
39 ntarget.SoundSynchRemoteReset();
40 }

◆ OnExecuteServer()

override void ActionCloseBarrelHoles::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 25 of file ActionCloseBarrelHoles.c.

26 {
27 Object target_object = action_data.m_Target.GetObject();
29
30 if (ntarget)
31 ntarget.Close();
32 }

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