DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ActionCondition()

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

Other conditions are handled in CCTLiquid

См. определение в файле ActionDrinkThroughContinuous.c строка 9

10 {
12 if (item && item.IsHeavyBehaviour())
13 return false;
14
15 if (!player.CanEatAndDrink())
16 return false;
17
18 return target.GetObject() && target.GetObject().GetWaterSourceObjectType() == EWaterSourceObjectType.THROUGH;
19 }
EWaterSourceObjectType
Определения EWaterSourceObjectType.c:2

Перекрестные ссылки ActionTarget().