Deleting all units from one side via Lua script

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

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

Deleting all units from one side via Lua script

Post 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

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

RE: Deleting all units from one side via Lua script

Post by michaelm75au »

Code: Select all

ScenEdit_RemoveSide({side='NameofSide'})
It returns a table of items that were on the 'Side' before they were removed.
Michael
MrGandi
Posts: 52
Joined: Sat Apr 05, 2014 1:56 pm

RE: Deleting all units from one side via Lua script

Post by MrGandi »

Thank you.
Post Reply

Return to “Lua Legion”