Turning off Investigate contacts outside the patrol area
Posted: Sat Oct 26, 2019 12:47 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 '='
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 '='