DayZ 1.24
Loading...
Searching...
No Matches
ActionEatCan.c
Go to the documentation of this file.
8
9
11{
16
17 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
18 {
19 return super.ActionCondition(player, target, item);
20 /*
21 //if staging for cans is introduced
22 if ( item && item.IsOpen() )
23 {
24 return true;
25 }
26 return false;
27 */
28 }
29};
30
31//-----------------SMALL BITES VARIANT-------------------
32
40
41
43{
48
49 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
50 {
51 if (!super.ActionCondition(player, target, item))
52 return false;
53 return true;
54 /*
55 //if staging for cans is introduced
56 if ( item && item.IsOpen() )
57 {
58 return true;
59 }
60 return false;
61 */
62 }
63};
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
Definition ActionEatCan.c:3
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionEatCan()
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float EAT_SMALL
const float DEFAULT