39 {
40 if (targetEntity && item)
41 {
42 GameInventory inventory = targetEntity.GetInventory();
43 InventoryLocation dst = new InventoryLocation();
45 {
46 return true;
47 }
48 }
49
50 return false;
51 }
FindInventoryLocationType
flags for searching locations in inventory
proto native bool CanAddAttachment(notnull EntityAI e)
Check if attachment can be added to any slot.
proto native bool FindFreeLocationFor(notnull EntityAI item, FindInventoryLocationType flags, out notnull InventoryLocation loc)
FindFreeLocationFor.