[FIXED] ScenEdit_SetUnitSide works only once per session

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
MrGandi
Posts: 52
Joined: Sat Apr 05, 2014 1:56 pm

[FIXED] ScenEdit_SetUnitSide works only once per session

Post by MrGandi »

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
Attachments
171406_test1.zip
(5.55 KiB) Downloaded 2 times
Cik
Posts: 671
Joined: Wed Oct 05, 2016 3:22 am

RE: ScenEdit_SetUnitSide works only once per session

Post by Cik »

paste the script you are using
MrGandi
Posts: 52
Joined: Sat Apr 05, 2014 1:56 pm

RE: ScenEdit_SetUnitSide works only once per session

Post by MrGandi »

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"})
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: ScenEdit_SetUnitSide works only once per session

Post by michaelm75au »

It is not an issue with swapping back but it is not recording the unit on the 'red' side.
Having a look
Michael
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: ScenEdit_SetUnitSide works only once per session

Post by michaelm75au »

Logged!
Michael
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: ScenEdit_SetUnitSide works only once per session

Post by michaelm75au »

Not sure why this seems broken in .17 though
Michael
Dimitris
Posts: 15276
Joined: Sun Jul 31, 2005 10:29 am
Contact:

RE: ScenEdit_SetUnitSide works only once per session

Post by Dimitris »

Fixed for the next update.
MrGandi
Posts: 52
Joined: Sat Apr 05, 2014 1:56 pm

RE: ScenEdit_SetUnitSide works only once per session

Post by MrGandi »

Thanks guys!! You're awesome!!!!
Post Reply

Return to “Tech Support”