Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
actiondrink.c
Go to the documentation of this file.
2{
3 override void CreateActionComponent()
4 {
5 m_ActionData.m_ActionComponent = new CAContinuousQuantityEdible(UAQuantityConsumed.DRINK,UATimeSpent.DEFAULT);
6 }
7};
8
9class ActionDrink: ActionConsume
10{
11 void ActionDrink()
12 {
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_DRINK;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_DRINK;
16 m_Text = "#drink";
17 }
18
19 override void CreateConditionComponents()
20 {
23 }
24
25 override bool IsDrink()
26 {
27 return true;
28 }
29
30 override bool HasTarget()
31 {
32 return false;
33 }
34}
void CreateActionComponent()
ActionData m_ActionData
bool IsDrink()
Definition actionbase.c:294
bool HasTarget()
Definition actionbase.c:250
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
void CreateConditionComponents()
Definition actionbase.c:236
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602