Escort missions
Posted: Fri Aug 03, 2018 8:49 am
Hay guys
This should be a simple one but I'm doing something wrong with it.
for i=1,18 do
if ScenEdit_GetUnit({Side='WP', Name="582nd IAP #"..i,}) ~= nil then
ScenEdit_AssignUnitToMission("582nd IAP #"..i, "Laage AB", escort=True)
end
end
Everything is working except for assigning the units as escort. Assigning to the base mission is fine, so its probably a syntax issue with the Boolean statement for assigning to escort. Have tried various combinations of ' & } to no effect.
Any help would be appreciated.
Thanks
This should be a simple one but I'm doing something wrong with it.
for i=1,18 do
if ScenEdit_GetUnit({Side='WP', Name="582nd IAP #"..i,}) ~= nil then
ScenEdit_AssignUnitToMission("582nd IAP #"..i, "Laage AB", escort=True)
end
end
Everything is working except for assigning the units as escort. Assigning to the base mission is fine, so its probably a syntax issue with the Boolean statement for assigning to escort. Have tried various combinations of ' & } to no effect.
Any help would be appreciated.
Thanks