I have created a SAR mission involving FFH 150 ANZAC its aircraft Eagle#1 and a civilian disabled yacht.
I really liked the Lua message format from the excellent Raid on Kismayo, 2013 so have copied the same message Lua as utilised in that scenario (changing the message wording etc).
I see the message popup from Eagle#1 (local theMessage)
But not the response from FFH 150, or lat and long (am I suppose to?)
Any assisstance will be appreciated.
David
Code: Select all
local theSpottedUnit = ScenEdit_UnitX()
local theSpotter = ScenEdit_UnitY().unit
if theSpottedUnit.dbid == 1379 then
local theMessage = "Eagle#1 has located the disabled yacht, will be a difficult rescue due to current weather conditions and sea state."
theMessage = GenerateRadioMessageBody(theMessage,theSpotter.name)
RadioMessage('Eagle#1','104.20 MHz',theMessage,{latitude=theSpottedUnit.latitude,longitude=theSpottedUnit.longitude})
TelexMessageToPlayer(
'Eagle#1',
'Eagle#1',
'1. FFH 150 Thank you for your report of locating the disabled yacht. <br>2. Please proceed with rescue as planned
planned. <br>3. Good luck.',
{latitude=theSpottedUnit.latitude, longitude=theSpottedUnit.longitude}
)
ScenEdit_SetEvent('Yacht_Spotted',{isactive=false})
end