Proof:
Stick the following:
Code: Select all
<Events>
<OnUninstall>
(objRemoveItem gSource gItem) ;Destroy ourself when removed.
</OnUninstall>
</Events>
Code: Select all
Item d62ba707 OnUninstall [Centauri warlord camp]: Installed items cannot be removed; use (shpRemoveDevice) instead ### (objRemoveItem gSource gItem) ###
Also, this attempted workaround:
Code: Select all
<OnUninstall>
(block Nil
(if (itmIsInstalled gItem)
(block Nil
(shpRemoveDevice gSource gItem) ;Workaround for a bug that happens when destroying stations
(printTo 'log "Working around station destruction bug.")
)
)
(objRemoveItem gSource gItem) ;Destroy ourself when removed. Perhaps I should just have the weapon delete the virtual ICX instead of the way it is now?
)
</OnUninstall>