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

◆ UpdateAttachmentSlot()

void ItemBase::UpdateAttachmentSlot ( )
inlineprotected

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

80 {
81 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
82 if ( base_building )
83 {
84 InventoryLocation inventory_location = new InventoryLocation;
85 GetInventory().GetCurrentInventoryLocation( inventory_location );
86 bool is_mounted = base_building.GetInventory().GetSlotLock( inventory_location.GetSlot() );
87 string slot_name = InventorySlots.GetSlotName( inventory_location.GetSlot() );
88
89 base_building.UpdateAttachmentVisuals( slot_name, is_mounted );
90 base_building.UpdateAttachmentPhysics( slot_name, is_mounted );
91 }
92 }
proto native int GetSlot()
returns slot id if current type is Attachment
void BaseBuildingBase()
Определения BaseBuildingBase.c:39

Перекрестные ссылки BaseBuildingBase(), InventoryLocation::GetSlot() и InventorySlots::GetSlotName().

Используется в EEInit().