Page 1 of 1

[Q] auto-detectable script

Posted: Sun Mar 29, 2026 11:46 pm
by Knightpawn
Is there a way to script a lua action whereby a unit becomes auto-detectable (it was not so at the beginning). I want to represent new intelligence in a scenario i am working on setting up a time event.

Thanks

Re: [Q] auto-detectable script

Posted: Mon Mar 30, 2026 3:42 pm
by Nikel
This works.

Credits to Perplexity :)
ScenEdit_SetUnit({
side = "Iran",
unitname = "Iman Ali Missile Base",
autoDetectable = true
})

Re: [Q] auto-detectable script

Posted: Mon Mar 30, 2026 7:26 pm
by Knightpawn
Thank you so much