Riddick Posted June 27, 2024 Posted June 27, 2024 While debugging the mission, it was discovered that in the multi-threaded version the script cannot always determine whether an object exists or not. After the crash of the TF-51D, an error message appears in the Flight&AWACS.lua file on line 202. 200 transmitterLocation = Unit.getPoint(radar) 201 if (#_Pilot[pilotNum].AnswerMessage == 0) and (_Pilot[pilotNum].Target ~= nil) then 202 local point = Unit.getPoint(_Pilot[pilotNum].Target) 203 _Pilot[pilotNum].AnswerMessage = 'cA"' .. getAzimuthDeg(point, pilotLocation) .. 'd' .. string.format("%0.f", ... Obviously, the " _Pilot[pilotNum].Target " object no longer exists and the line 201 did nothing to help detect this. F&AlandingCV59.trk 1
Recommended Posts