Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[WAD]LUA SetDoctrine ignores unit selector

 
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 >> Tech Support >> [WAD]LUA SetDoctrine ignores unit selector Page: [1]
Login
Message << Older Topic   Newer Topic >>
[WAD]LUA SetDoctrine ignores unit selector - 9/20/2015 1:36:45 PM   
DeSade

 

Posts: 156
Joined: 3/1/2004
Status: offline
If you call ScenEdit_SetDoctrine with side and unit selector, it will ignore unit and set doctrine for whole side, for example:

ScenEdit_SetDoctrine({side="USN/USMC", unit="DDG 76 Higgins"}, {engage_opportunity_targets= "yes"})

will change engage_opportunity_targets property for whole USN/USMC side, not only for DDG 76.

just load save, check side doctrine then run above command in script console and check side doctrine again




Attachment (1)

< Message edited by mikmyk -- 9/20/2015 10:11:21 PM >
Post #: 1
RE: LUA SetDoctrine ignores unit selector - 9/20/2015 1:41:30 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Added to our list of things that should be investigated. Thanks for the report.

Mike

_____________________________


(in reply to DeSade)
Post #: 2
RE: LUA SetDoctrine ignores unit selector - 9/20/2015 2:22:31 PM   
Tomcat84

 

Posts: 1952
Joined: 7/10/2013
Status: offline
try: ScenEdit_SetDoctrine({side="USN/USMC", name="DDG 76 Higgins"}, {engage_opportunity_targets= "yes"})

I dont think "unit" is a correct selector, so it probably ignores that and goes with side?

Correct selector options are:

side
name
mission
group

see:

http://commandlua.github.io/#ScenEdit_SetDoctrine

and

http://commandlua.github.io/index.html#DoctrineSelector


_____________________________

My Scenarios and Tutorials for Command

(Scenarios focus on air-warfare :) )

(in reply to mikmykWS)
Post #: 3
RE: LUA SetDoctrine ignores unit selector - 9/20/2015 9:05:33 PM   
DeSade

 

Posts: 156
Joined: 3/1/2004
Status: offline
ahh, of course, stupid mistake you can close it

(in reply to Tomcat84)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [WAD]LUA SetDoctrine ignores unit selector 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

0.738