Page 1 of 1

Removing No Navigation (Fly) Zones????

Posted: Sun Mar 07, 2021 7:19 pm
by BeirutDude
OK I hope this is simple, using a trigger of hostilities starting at a certain time Time = 14:30:00 I'd like to create an action removing a simple No Navigation Zone. I really suck at Lua, I admit I do and some examples (real practical examples in the Lua Docs) would really help the neophyte!

This is what I came up with, but it obviously is wrong! [:@]

ScenEdit_RemoveZone ('NATO','Type=1','{RP-1881,RP-1882,RP-1883,RP-1884}')

Image

RE: Removing No Navigation (Fly) Zones????

Posted: Mon Mar 08, 2021 7:31 am
by KnightHawk75
ScenEdit_RemoveZone('NATO','0',{Description="NameOfMyNoNavZone"}) --would delete it
ScenEdit_SetZone('NATO','0',{Description="NameOfMyNoNavZone",Isactive=false}) -- would just disable it (if you need that at some point in future).

RE: Removing No Navigation (Fly) Zones????

Posted: Thu Mar 11, 2021 10:18 pm
by BeirutDude
Thank you!

RE: Removing No Navigation (Fly) Zones????

Posted: Fri Mar 12, 2021 12:28 am
by Kushan04
Can also use SetZone to turn off a zone instead of deleting it.

ScenEdit_SetZone('Side', '0', {description='NameOfMyNoNavZone', isactive='false'})