Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

ScenEdit_SetZone (sideName, zoneType, table)

 
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 >> ScenEdit_SetZone (sideName, zoneType, table) Page: [1]
Login
Message << Older Topic   Newer Topic >>
ScenEdit_SetZone (sideName, zoneType, table) - 6/22/2019 1:41:08 PM   
AdmiralSteve


Posts: 261
Joined: 3/28/2011
From: Red Bluff, CA
Status: offline
I'm wanting to have two exclusion zone made but not active and want them to go active once a particular event occurs yet I cannot figure out how to the get this script to work. Any help is greatly appreciated.

ScenEdit_SetZone (sideName, zoneType, table)

Thank you,

Steve

_____________________________

“There are no extraordinary men...just extraordinary circumstances that ordinary men are forced to deal with.”
Admiral William Frederick Halsey Jr. 1882-1959

Post #: 1
RE: ScenEdit_SetZone (sideName, zoneType, table) - 6/22/2019 11:58:37 PM   
michaelm75au


Posts: 12534
Joined: 5/5/2001
From: Sydney, Australia
Status: online
ScenEdit_SetZone('NATO', 1, {description='Zone 1',isactive=1})

Note that the 'description' is case sensitive. You can also use the GUID of the zone if you know it rather than 'description'.
ScenEdit_SetZone('NATO', 1, {guid='e8972385-551e-4617-b197-a74a20c6e51b',isactive=1})

The older method to do same thing still exists
local a = VP_GetSide({Side ='nato'}) -- a side object
local z = a.exclusionzones --List of zones for the side if you need to find it
local n = a : getexclusionzone('Zone 1') -- required zone object for a particular zone
n.isactive = true-- turn it on


_____________________________

Michael

(in reply to AdmiralSteve)
Post #: 2
RE: ScenEdit_SetZone (sideName, zoneType, table) - 6/23/2019 2:15:42 AM   
AdmiralSteve


Posts: 261
Joined: 3/28/2011
From: Red Bluff, CA
Status: offline
Thank you kindly sir. I greatly appreciate your time.

Steve

_____________________________

“There are no extraordinary men...just extraordinary circumstances that ordinary men are forced to deal with.”
Admiral William Frederick Halsey Jr. 1882-1959


(in reply to michaelm75au)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> ScenEdit_SetZone (sideName, zoneType, table) 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.109