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

Private Member Functions

void ActionEmptySeedsPack ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 

Detailed Description

Definition at line 6 of file ActionEmptySeedsPack.c.

Constructor & Destructor Documentation

◆ ActionEmptySeedsPack()

void ActionEmptySeedsPack::ActionEmptySeedsPack ( )
inlineprivate

Definition at line 8 of file ActionEmptySeedsPack.c.

9 {
10 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_EMPTYSEEDSPACK;
11 m_FullBody = false;
12 m_Text = "#unbox";
13 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_FullBody, and m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 26 of file ActionEmptySeedsPack.c.

27 {
28 return true;
29 }

◆ CreateConditionComponents()

override void ActionEmptySeedsPack::CreateConditionComponents ( )
inlineprivate

Definition at line 15 of file ActionEmptySeedsPack.c.

16 {
19 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool ActionEmptySeedsPack::HasTarget ( )
inlineprivate

Definition at line 21 of file ActionEmptySeedsPack.c.

22 {
23 return false;
24 }

◆ OnExecuteServer()

override void ActionEmptySeedsPack::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 31 of file ActionEmptySeedsPack.c.

32 {
34
35 // The following careful script fixes an issue with VME with unknown repro.
36
37 if (item_SPB)
38 {
40
41 if (action_data)
42 player = action_data.m_Player;
43
44 item_SPB.EmptySeedPack(player);
45 }
46 }

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