Page 1 of 1

Auto detect

Posted: Sat Mar 07, 2026 4:02 pm
by gamer69
Hi all
has anyone managed to do a script to disable auto detection for a side

struggling to get one to work have set the event up and put the code in and the message log is saying the event fired but when i drop contact it reappears.

Thank you

Re: Auto detect

Posted: Tue Mar 10, 2026 6:09 pm
by Correcaminos
I'm not sure if this question should go here in the missions section or in the specific LUA forum (I'll answer here and then the moderators can decide). Try this:


If your dropped contacts instantly reappear, it means your Side's global awareness is still set to auto-detect everything. To fix this, you need to toggle the Side's awareness level using Lua scripts inside your Events.

Use this code in your Event Action to TURN OFF auto-detection (units will rely on realistic sensors):

Lua
ScenEdit_SetSideOptions({side="YourSideName", awareness="NORMAL"})
Use this code in your Event Action to TURN ON auto-detection (omniscient mode):

Lua
ScenEdit_SetSideOptions({side="YourSideName", awareness="OMNI"})
Just replace "YourSideName" with the actual name of your side. Hope this helps!