1622 {
1623 InventoryLocation lcn = new InventoryLocation();
1625 int attachmentDepth = 0;
1626 while (ent)
1627 {
1628 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.
IsValid())
1629 {
1631 {
1632 return false;
1633 }
1634
1635
1637 {
1638 attachmentDepth++;
1639 }
1640 }
1641
1642 ent = ent.GetHierarchyParent();
1643 }
1644
1645 return attachmentDepth <= GameConstants.INVENTORY_MAX_REACHABLE_DEPTH_ATT;
1646 }
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