Turning off Investigate contacts outside the patrol area (Full Version)

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



Message


TheOttoman -> Turning off Investigate contacts outside the patrol area (10/26/2019 3:47:34 PM)

I've created a mission

mission=ScenEdit_AddMission("US Navy","Patrol Mission","patrol",{type="naval"})
mission.isactive=true
mission=ScenEdit_SetMission("US Navy","Patrol Mission",{patrolzone={'NPGZ1','NPGZ2','NPGZ3','NPGZ4'},
prosecutionZone={'NPGZ1','NPGZ2','NPGZ3','NPGZ4'}, onethirdrule=false, onstation=1})

and I would like to turn off the Investigate contacts outside the patrol area checkbox, a boolean function. According to the commandlua documentation this setting is "checkOPA". I've tried to put checkOPA=false all throughout the ScenEdit_SetMission function, but no matter where I place it, I get an error: ')' expected near '='




KnightHawk75 -> RE: Turning off Investigate contacts outside the patrol area (10/27/2019 12:18:45 AM)

mission=ScenEdit_SetMission("US Navy","Patrol Mission",{ patrolzone={'NPGZ1','NPGZ2','NPGZ3','NPGZ4'},
prosecutionZone={'NPGZ1','NPGZ2','NPGZ3','NPGZ4'}, onethirdrule=false, onstation=1,checkOPA=false } ) 

Runs without error for me and unchecks the correct option. Sure you don't have a missing comma, or extra ' } ) somewhere?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0234375