Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Removing No Navigation (Fly) Zones????

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Removing No Navigation (Fly) Zones???? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Removing No Navigation (Fly) Zones???? - 3/7/2021 9:19:48 PM   
BeirutDude


Posts: 2423
Joined: 4/27/2013
From: Jacksonville, FL, USA
Status: offline
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}')




Attachment (1)

< Message edited by BeirutDude -- 3/7/2021 9:20:53 PM >


_____________________________

"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!
Post #: 1
RE: Removing No Navigation (Fly) Zones???? - 3/8/2021 9:31:03 AM   
KnightHawk75

 

Posts: 1240
Joined: 11/15/2018
Status: offline
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).

< Message edited by KnightHawk75 -- 3/12/2021 1:49:00 AM >

(in reply to BeirutDude)
Post #: 2
RE: Removing No Navigation (Fly) Zones???? - 3/12/2021 12:18:45 AM   
BeirutDude


Posts: 2423
Joined: 4/27/2013
From: Jacksonville, FL, USA
Status: offline
Thank you!

_____________________________

"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!

(in reply to KnightHawk75)
Post #: 3
RE: Removing No Navigation (Fly) Zones???? - 3/12/2021 2:28:33 AM   
Kushan04


Posts: 615
Joined: 6/29/2005
Status: offline
Can also use SetZone to turn off a zone instead of deleting it.

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

_____________________________


(in reply to BeirutDude)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Removing No Navigation (Fly) Zones???? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.453