DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
ActionCondition()
override
bool
ActionCondition
(
PlayerBase
player
,
ActionTarget
target
,
ItemBase
item
)
См. определение в файле
ActionForceConsumeSingle.c
строка
33
34
{
35
if
(!super.ActionCondition(player, target, item))
36
return
false
;
37
38
if
(item.GetQuantity() <= item.GetQuantityMin())
39
return
false
;
40
41
PlayerBase
targetPlayer =
PlayerBase
.Cast(target.GetObject());
42
ConsumeConditionData
dta =
new
ConsumeConditionData
(targetPlayer,item);
43
return
targetPlayer && targetPlayer.CanEatAndDrink() && targetPlayer.CanConsumeFood(dta) && item.CanBeConsumed(dta);
44
}
ConsumeConditionData
Определения
ConsumeConditionData.c:2
PlayerBase
Определения
PlayerBaseClient.c:2
Перекрестные ссылки
ActionTarget
.
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionForceConsumeSingle.c
Создано системой
1.13.2