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

◆ CanAddAsShortcut()

bool CanAddAsShortcut ( EntityAI entity)
protected

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

138 {
140 entity.GetInventory().GetCurrentInventoryLocation(loc);
141 EntityAI parent = loc.GetParent();
142
143 return (entity && entity.GetHierarchyRootPlayer() == _player && parent.CanAssignAttachmentsToQuickbar() && entity.CanAssignToQuickbar());
144 }
PlayerBase _player
Определения QuickBarBase.c:18
Определения Building.c:6
proto native EntityAI GetParent()
returns parent of current inventory location
InventoryLocation.
Определения InventoryLocation.c:29

Перекрестные ссылки _player и InventoryLocation::GetParent().

Используется в _SetEntity(), SetShotcutEnable() и UpdateShotcutVisibility().