Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Deleting all units from one side via Lua script

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Deleting all units from one side via Lua script Page: [1]
Login
Message << Older Topic   Newer Topic >>
Deleting all units from one side via Lua script - 10/16/2018 9:01:07 PM   
MrGandi

 

Posts: 52
Joined: 4/5/2014
Status: offline
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

Post #: 1
RE: Deleting all units from one side via Lua script - 10/16/2018 10:51:02 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
ScenEdit_RemoveSide({side='NameofSide'})

It returns a table of items that were on the 'Side' before they were removed.

_____________________________

Michael

(in reply to MrGandi)
Post #: 2
RE: Deleting all units from one side via Lua script - 10/18/2018 7:25:02 PM   
MrGandi

 

Posts: 52
Joined: 4/5/2014
Status: offline
Thank you.

(in reply to michaelm75au)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Deleting all units from one side via Lua script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.000