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

◆ ActionCondition()

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

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

25 {
26 Blowtorch blowTorch;
27 if (Class.CastTo(blowTorch, item))
28 return super.ActionCondition(player, target, item) && blowTorch.HasEnoughEnergyForRepair(UATimeSpent.BASEBUILDING_REPAIR_MEDIUM);
29
30 return false;
31 }
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().