DayZ 1.24
Loading...
Searching...
No Matches
ActionDrinkThroughContinuous Class Reference
Inheritance diagram for ActionDrinkThroughContinuous:
[legend]
Collaboration diagram for ActionDrinkThroughContinuous:
[legend]

Private Member Functions

override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 

Detailed Description

Definition at line 1 of file ActionDrinkThroughContinuous.c.

Member Function Documentation

◆ ActionCondition()

override bool ActionDrinkThroughContinuous::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 9 of file ActionDrinkThroughContinuous.c.

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 }
EWaterSourceObjectType

◆ CreateConditionComponents()

override void ActionDrinkThroughContinuous::CreateConditionComponents ( )
inlineprivate

Definition at line 3 of file ActionDrinkThroughContinuous.c.

4 {
7 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float SMALL

References m_ConditionItem, m_ConditionTarget, and UAMaxDistances::SMALL.


The documentation for this class was generated from the following file: