[Q] auto-detectable script

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Knightpawn
Posts: 518
Joined: Mon Dec 02, 2024 12:28 pm

[Q] auto-detectable script

Post 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
Nikel
Posts: 2834
Joined: Tue Mar 24, 2009 10:51 am

Re: [Q] auto-detectable script

Post by Nikel »

This works.

Credits to Perplexity :)
ScenEdit_SetUnit({
side = "Iran",
unitname = "Iman Ali Missile Base",
autoDetectable = true
})
Knightpawn
Posts: 518
Joined: Mon Dec 02, 2024 12:28 pm

Re: [Q] auto-detectable script

Post by Knightpawn »

Thank you so much
Post Reply

Return to “Lua Legion”