1887 {
1889 if ( parent )
1890 {
1891 InventoryLocation inventory_location = new InventoryLocation();
1893
1894 return parent.GetInventory().GetSlotLock( inventory_location.
GetSlot() );
1895 }
1896
1897 return false;
1898 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
proto native bool GetCurrentInventoryLocation(out notnull InventoryLocation loc)
returns information about current item location
proto native int GetSlot()
returns slot id if current type is Attachment