Returns true if inventory owner or his hiearchy parents are in cargo.
422 {
423 InventoryLocation lcn = new InventoryLocation();
425 while (ent)
426 {
427 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.
IsValid())
428 {
430 return true;
431 }
432
433 ent = ent.GetHierarchyParent();
434 }
435
436 return false;
437 }
InventoryLocationType
types of Inventory Location
proto native EntityAI GetInventoryOwner()
Engine native functions.
proto native bool IsValid()
verify current set inventory location
proto native int GetType()
returns type of InventoryLocation