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

◆ ActionCondition()

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

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

50 {
51 if (item && item.IsHeavyBehaviour())
52 return false;
53
54 int liquidType = LIQUID_NONE;
55 liquidType = target.GetSurfaceLiquidType();
56
57 return liquidType & m_AllowedLiquidMask && player.CanEatAndDrink();
58 }
int m_AllowedLiquidMask
Определения ActionDrinkPondContinuous.c:13
const int LIQUID_NONE
Определения 3_Game/constants.c:529

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