80 {
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