I created a Unit Remains in Area Trigger for x time, after which the airfield group changes to the red side via the code below. The airfield still remains as a contact on the red side after this event, and I would like to add syntax that drops the contact.
Code: Select all
local myside = 'AIRCOM'
local mynewside = 'VKS'
local myname = {'Kirkenes Airport'}
for i = 1, #myname
do
ScenEdit_SetUnitSide({side=myside,name=myname[i],newside=mynewside})
end
Any help would be appreciated.