1658 {
1659 InventoryLocation lcn = new InventoryLocation();
1661 int attachmentDepth = 0;
1662 while (ent)
1663 {
1664 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.
IsValid())
1665 {
1668 {
1669 return false;
1670 }
1671
1672
1674 {
1675 attachmentDepth++;
1676 }
1677 }
1678
1679 ent = ent.GetHierarchyParent();
1680 }
1681
1682 return attachmentDepth <= GameConstants.INVENTORY_MAX_REACHABLE_DEPTH_ATT;
1683 }
InventoryLocationType
types of Inventory Location
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
proto native bool IsValid()
verify current set inventory location
proto native int GetType()
returns type of InventoryLocation