Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actionforceabite.c
Go to the documentation of this file.
8
10{
12 {
13 m_CallbackClass = ActionForceABiteCB;
14 m_Text = "#feed_a_bite";
15 }
16
18 {
19 m_ConditionItem = new CCINonRuined;
20 m_ConditionTarget = new CCTMan(UAMaxDistances.DEFAULT);
21 }
22
23 override void OnEndServer( ActionData action_data )
24 {
25 super.OnEndServer(action_data);
26
27 if ( action_data.m_MainItem.GetQuantity() <= 0 )
28 {
29 action_data.m_MainItem.SetQuantity(0);
30 }
31 }
32};
ActionBase ActionData
Definition actionbase.c:30
void ActionForceConsumeSingle()
ActionData m_ActionData
override void CreateActionComponent()
override void OnEndServer(ActionData action_data)
override void CreateConditionComponents()
Definition cctman.c:2
const float DEFAULT
const float EAT_NORMAL