Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Turning off Investigate contacts outside the patrol area

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Turning off Investigate contacts outside the patrol area Page: [1]
Login
Message << Older Topic   Newer Topic >>
Turning off Investigate contacts outside the patrol area - 10/26/2019 3:47:34 PM   
TheOttoman

 

Posts: 138
Joined: 12/14/2017
Status: offline
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 '='

< Message edited by TheOttoman -- 10/26/2019 3:48:49 PM >
Post #: 1
RE: Turning off Investigate contacts outside the patrol... - 10/27/2019 12:18:45 AM   
KnightHawk75

 

Posts: 664
Joined: 11/15/2018
Status: offline
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?

(in reply to TheOttoman)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Turning off Investigate contacts outside the patrol area Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.252