1686 {
1687 InventoryLocation lcn = new InventoryLocation();
1689 int attachmentDepth = 0;
1690 while (ent)
1691 {
1692 if (ent.GetInventory().GetCurrentInventoryLocation(lcn) && lcn.
IsValid())
1693 {
1696 {
1697 return false;
1698 }
1699
1700
1702 {
1703 attachmentDepth++;
1704 }
1705 }
1706
1707 ent = ent.GetHierarchyParent();
1708 }
1709
1710 return attachmentDepth <= GameConstants.INVENTORY_MAX_REACHABLE_DEPTH_ATT;
1711 }
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