DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ActionDrinkThroughContinuous.c
Go to the documentation of this file.
2{
3 override void CreateConditionComponents()
4 {
7 }
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
void ActionDrinkPondContinuous()
class ActionTargets ActionTarget
EWaterSourceObjectType
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float SMALL