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

◆ ActionCondition()

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

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

19 {
20 Blowtorch blowTorch;
21 if (Class.CastTo(blowTorch, item))
22 return super.ActionCondition(player, target, item) && blowTorch.HasEnoughEnergyForRepair(UATimeSpent.BASEBUILDING_REPAIR_MEDIUM);
23
24 return false;
25 }
Super root of all classes in Enforce script.
Определения EnScript.c:11
const float BASEBUILDING_REPAIR_MEDIUM
Определения ActionConstants.c:68
Определения ActionConstants.c:28
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки ActionTarget(), UATimeSpent::BASEBUILDING_REPAIR_MEDIUM и Class::CastTo().