Having groups (airbases) switch sides?

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
User avatar
BeirutDude
Posts: 2811
Joined: Sat Apr 27, 2013 9:44 am
Location: Jacksonville, FL, USA

Having groups (airbases) switch sides?

Post by BeirutDude »

I'm working on a Amphibious scenario and would like to have the airbases and ports switch sides as the islands/areas are taken. Can a group be set to switch sides using the "Unit Remains in area Trigger (say 1 hour)?

or would I have to delete from side A and add an equivalent group for Side B with the same event? If this is the case can it be done for a group? I see the unit function but not one for group.

Never mind found it!

ScenEdit_SetUnitSide({side='Old Side', name='Eagle #1', newside='New Side'})
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!
Parel803
Posts: 962
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

RE: Having groups (airbases) switch sides?

Post by Parel803 »

thank for the post. So I can keep learning aobut lua and it's poosibilities.
with regards GJ
Post Reply

Return to “Lua Legion”