[FIXED] ScenEdit_SetUnitSide works only once per session (Full Version)

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



Message


MrGandi -> [FIXED] ScenEdit_SetUnitSide works only once per session (6/14/2017 9:57:57 PM)

Hi there,

With the lua action ScenEdit_SetUnitSide I can change unit side only ones. If I try to change the same unit again the function doesn't work anymore. I've to safe the game and restart it. After that I can change the side back.
As far as I remember it was possible to change unit sides back and forth in the past.

Please have a look at attached file.
To change unit side just go to special action.

Do I miss something?
I'm using Build 936.17




Cik -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 2:50:45 AM)

paste the script you are using




MrGandi -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 8:26:52 AM)

I'm using:
ScenEdit_SetUnitSide({side="blue", name="USS Virginia", newside="red"})

To get the unit back I used in the past:
ScenEdit_SetUnitSide({side="red", name="USS Virginia", newside="blue"})




michaelm75au -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 11:18:24 AM)

It is not an issue with swapping back but it is not recording the unit on the 'red' side.
Having a look




michaelm75au -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 12:23:29 PM)

Logged!




michaelm75au -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 12:55:35 PM)

Not sure why this seems broken in .17 though




Dimitris -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 1:26:11 PM)

Fixed for the next update.




MrGandi -> RE: ScenEdit_SetUnitSide works only once per session (6/15/2017 2:29:48 PM)

Thanks guys!! You're awesome!!!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.921875