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

◆ ActionCondition()

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

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

30 {
31 EntityAI targetEntity = EntityAI.Cast(target.GetObject());
32
33 if (targetEntity.HasEnergyManager())
34 {
35 string selection = targetEntity.GetActionComponentName(target.GetComponentIndex());
36
37 if (GetGame().IsServer())
38 return targetEntity.GetCompEM().GetPlugOwner(selection) != null;
39 else
40 return targetEntity.GetCompEM().IsSelectionAPlug(selection);
41 }
42
43 return false;
44 }
class LogManager EntityAI
proto native CGame GetGame()

Перекрестные ссылки ActionTarget и GetGame().