[ANSWERED] ScenEdit_SetUnit Issue?

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
User avatar
tjhkkr
Posts: 2430
Joined: Wed Jun 02, 2010 11:15 pm
Contact:

[ANSWERED] ScenEdit_SetUnit Issue?

Post by tjhkkr »

ScenEdit_SetUnit({name="SSM Bn FROG.1", side ="Neutral", newside="ISIS"})

The Script console accepts the command, but the unit does not change sides.
Hello, is it that this command DOES NOT allow a unit to change sides or is there a programming issue on the CMANO or is just me.
Please let me know.
Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.
Tomcat84
Posts: 1952
Joined: Wed Jul 10, 2013 5:13 pm

RE: ScenEdit_SetUnit Issue?

Post by Tomcat84 »

Give the following a go:

ScenEdit_SetUnitSide({side="Neutral", name="SSM Bn FROG.1", newside="ISIS"})
My Scenarios and Tutorials for Command

(Scenarios focus on air-warfare :) )
thewood1
Posts: 9138
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: ScenEdit_SetUnit Issue?

Post by thewood1 »

Yeah, I learned the hard way that the side and unit variables are identifiers and can't be changed in that call. the "unitside" in 1.09 was a welcome addition.
User avatar
tjhkkr
Posts: 2430
Joined: Wed Jun 02, 2010 11:15 pm
Contact:

RE: ScenEdit_SetUnit Issue?

Post by tjhkkr »

Thank you ever so much. That fixed it and it worked. THANK YOU VERY MUCH [8D][:)][;)]
Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.
Post Reply

Return to “Tech Support”