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
|
|
|
|