Auto detect

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
gamer69
Posts: 15
Joined: Thu Mar 19, 2020 5:42 am

Auto detect

Post 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
User avatar
Correcaminos
Posts: 210
Joined: Sun Jun 01, 2025 7:25 am

Re: Auto detect

Post 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!
"Si vis pacem, para bellum."
Post Reply

Return to “Mods and Scenarios”