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