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

◆ IsLockedInSlot()

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

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

1937 {
1938 EntityAI parent = GetHierarchyParent();
1939 if ( parent )
1940 {
1941 InventoryLocation inventory_location = new InventoryLocation();
1942 GetInventory().GetCurrentInventoryLocation( inventory_location );
1943
1944 return parent.GetInventory().GetSlotLock( inventory_location.GetSlot() );
1945 }
1946
1947 return false;
1948 }
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().