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

◆ ActionCondition()

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

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

11 {
12 EntityAI target_entity = EntityAI.Cast( target.GetObject() );
13
14 InventoryLocation loc = new InventoryLocation;
15 target_entity.GetInventory().GetCurrentInventoryLocation(loc);
16
17 return ( player.IsAlive() && target_entity.HasEnergyManager() && target_entity.GetCompEM().CanSwitchOn() && target_entity.GetCompEM().CanWork() && loc.GetType() == InventoryLocationType.GROUND );
18 }
class LogManager EntityAI
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки ActionTarget и InventoryLocation::GetType().