11 {
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 }
InventoryLocationType
types of Inventory Location
proto native int GetType()
returns type of InventoryLocation