[WAD]LUA SetDoctrine ignores unit selector

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
DeSade
Posts: 155
Joined: Mon Mar 01, 2004 5:08 pm
Contact:

[WAD]LUA SetDoctrine ignores unit selector

Post by DeSade »

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


Attachments
PlayTheF..2018_aaa.zip
(485.16 KiB) Downloaded 5 times
mikmykWS
Posts: 7185
Joined: Tue Mar 22, 2005 4:34 pm

RE: LUA SetDoctrine ignores unit selector

Post by mikmykWS »

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

Mike
Tomcat84
Posts: 1952
Joined: Wed Jul 10, 2013 5:13 pm

RE: LUA SetDoctrine ignores unit selector

Post by Tomcat84 »

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 :) )
DeSade
Posts: 155
Joined: Mon Mar 01, 2004 5:08 pm
Contact:

RE: LUA SetDoctrine ignores unit selector

Post by DeSade »

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

Return to “Tech Support”