Destroying not owned structures



  • In a claimed room when there are still structures from the previous player, my script can't destroy the structures. `structure.destroy()` => -1 (ERR_NOT_OWNER)

    While manually destroying the structure is possible. Is this expected?



  • Nevermind, now it is working - maybe only for spawns?



  • I just tested this in a room that had extensions and a spawn owned by another player. I claimed the room and then attempted to call .destroy() on all of the structures in the room. It worked just fine for the extensions but repeated calls to .destroy() on the spawn returned -1 (ERR_NOT_OWNER). I was able to destroy the spawn using the GUI "destroy this structure" button in the side bar.