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

◆ ActionCondition()

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

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

37 {
38 ItemBase target_IB;
39 if (Class.CastTo(target_IB, target.GetObject()))
40 {
41 if (target_IB.CanBeDigged())
42 {
43 return target_IB.IsInherited(UndergroundStash);
44 }
45 }
46
47 return false;
48 }
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

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