Page 1 of 1

Deleting all units from one side via Lua script

Posted: Tue Oct 16, 2018 6:01 pm
by MrGandi
Hey folks,

Does anybody know how to use the Lua function "ScenEdit_RemoveSide"?
I would like to remove all present units of one side and this function could be very handy but I'm not able to make it work.

How would an alternative script look like?

Many thanks in advance


RE: Deleting all units from one side via Lua script

Posted: Tue Oct 16, 2018 7:51 pm
by michaelm75au

Code: Select all

ScenEdit_RemoveSide({side='NameofSide'})
It returns a table of items that were on the 'Side' before they were removed.

RE: Deleting all units from one side via Lua script

Posted: Thu Oct 18, 2018 4:25 pm
by MrGandi
Thank you.