DayZ 1.24
Loading...
Searching...
No Matches
ActionEmptySeedsPack.c
Go to the documentation of this file.
1/*
2 User action for emptying packs of seeds (horticulture)
3*/
4
5
7{
9 {
10 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_EMPTYSEEDSPACK;
11 m_FullBody = false;
12 m_Text = "#unbox";
13 }
14
16 {
19 }
20
21 override bool HasTarget()
22 {
23 return false;
24 }
25
26 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
27 {
28 return true;
29 }
30
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 }
47};
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597