[WAD]LUA SetDoctrine ignores unit selector (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support



Message


DeSade -> [WAD]LUA SetDoctrine ignores unit selector (9/20/2015 1:36:45 PM)

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






mikmykWS -> RE: LUA SetDoctrine ignores unit selector (9/20/2015 1:41:30 PM)

Added to our list of things that should be investigated. Thanks for the report.

Mike




Tomcat84 -> RE: LUA SetDoctrine ignores unit selector (9/20/2015 2:22:31 PM)

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




DeSade -> RE: LUA SetDoctrine ignores unit selector (9/20/2015 9:05:33 PM)

ahh, of course, stupid mistake [:o] you can close it




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.640625