tmoilanen -> LUA Command to Drop Contact (12/14/2021 12:01:51 PM)
|
How do you drop a contact via LUA? 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. 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.
|
|
|
|