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

◆ IsLockedInSlot()

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

См. определение в файле EntityAI.c строка 1846

1847 {
1848 EntityAI parent = GetHierarchyParent();
1849 if ( parent )
1850 {
1851 InventoryLocation inventory_location = new InventoryLocation();
1852 GetInventory().GetCurrentInventoryLocation( inventory_location );
1853
1854 return parent.GetInventory().GetSlotLock( inventory_location.GetSlot() );
1855 }
1856
1857 return false;
1858 }
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
proto native GameInventory GetInventory()
void EntityAI()
cache blood infection chance (cfgVehicles-><entity>->Skinning->BloodInfectionSettings)
Определения EntityAI.c:202
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().