DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ IsLockedInSlot()

bool Entity::IsLockedInSlot ( )
inlineprotected
Возвращает
true if entity is locked in attachment slot

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1886

1887 {
1888 EntityAI parent = GetHierarchyParent();
1889 if ( parent )
1890 {
1891 InventoryLocation inventory_location = new InventoryLocation();
1892 GetInventory().GetCurrentInventoryLocation( inventory_location );
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

Перекрестные ссылки EntityAI(), GetHierarchyParent(), GetInventory() и InventoryLocation::GetSlot().