ScenEdit_SetZone (sideName, zoneType, table) (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion



Message


AdmiralSteve -> ScenEdit_SetZone (sideName, zoneType, table) (6/22/2019 1:41:08 PM)

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




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

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




AdmiralSteve -> RE: ScenEdit_SetZone (sideName, zoneType, table) (6/23/2019 2:15:42 AM)

Thank you kindly sir. I greatly appreciate your time.

Steve




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.7050781