DayZ 1.24
Loading...
Searching...
No Matches
ActionDrinkThroughContinuous.c
Go to the documentation of this file.
1class ActionDrinkThroughContinuous: ActionDrinkPondContinuous
2{
8
9 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
10 {
11 if (item && item.IsHeavyBehaviour())
12 return false;
13
14 if (!player.CanEatAndDrink())
15 return false;
16
17 return target.GetObject() && target.GetObject().GetWaterSourceObjectType() == EWaterSourceObjectType.THROUGH;
18 }
19}
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
EWaterSourceObjectType
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float SMALL