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

◆ LockAttachmentSlot()

void ItemBase::LockAttachmentSlot ( bool lock_state)
inlineprotected

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

95 {
96 BaseBuildingBase base_building = BaseBuildingBase.Cast( GetHierarchyParent() );
97 if ( base_building )
98 {
99 InventoryLocation inventory_location = new InventoryLocation;
100 GetInventory().GetCurrentInventoryLocation( inventory_location );
101 base_building.GetInventory().SetSlotLock( inventory_location.GetSlot(), lock_state );
102 //string slot_name = InventorySlots.GetSlotName( inventory_location.GetSlot() );
103 //base_building.UpdateAttachmentVisuals( slot_name, lock_state );
104 //base_building.UpdateAttachmentPhysics( slot_name, lock_state );
105 }
106 }
proto native int GetSlot()
returns slot id if current type is Attachment
void BaseBuildingBase()
Определения BaseBuildingBase.c:39

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

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