Page 1 of 1

Turning off Investigate contacts outside the patrol area

Posted: Sat Oct 26, 2019 12:47 pm
by TheOttoman
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 '='

RE: Turning off Investigate contacts outside the patrol area

Posted: Sat Oct 26, 2019 9:18 pm
by KnightHawk75

Code: Select all

 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?