DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionEatCan.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
6 }
7};
8
9
11{
13 {
15 }
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
34{
35 override void CreateActionComponent()
36 {
38 }
39};
40
41
43{
45 {
47 }
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};
class ActionTargets ActionTarget
protected ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
Definition ActionEatCan.c:3
void ActionEatCan()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float EAT_SMALL
const float DEFAULT