Returns true if inventory owner or his hiearchy parents are in cargo.
424 {
425 InventoryLocation lcn = new InventoryLocation();
427 while (ent)
428 {
429 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.
IsValid())
430 {
432 return true;
433 }
434
435 ent = ent.GetHierarchyParent();
436 }
437
438 return false;
439 }
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