FlightControl-Master / MOOSE

Mission Object Oriented Scripting Environment (MOOSE) for lua mission scripting design in DCS World
http://flightcontrol-master.github.io/MOOSE/
GNU General Public License v3.0
291 stars 98 forks source link

Event Handlers Not Working #2153

Closed Sci-fer closed 4 months ago

Sci-fer commented 4 months ago

I did a mission in Mariana Islands with C-101. I used the same code as I always did, but at least take off and landing are not getting called.

player_unit:HandleEvent(EVENTS.Takeoff)

function player_unit:OnEventTakeoff(EventData)
    MESSAGE:New("Aircraft took off", 10):ToGroup(player_group)
end

I got no errors in the log.

Please advise

Applevangelist commented 4 months ago

These 2 don’t work anymore since the latest DCS release. Try runway takeoff and runway touch

Sci-fer commented 4 months ago

@Applevangelist,

That worked.

What is the difference?

Thank you so much!

Sci-fer commented 4 months ago

@FlightControl-User,

The documentation is not updated for that ;)

Kind regards

funkyfranky commented 4 months ago

Hopefully, the takeoff and land events will be fixed by ED. It is reported https://forum.dcs.world/topic/353842-events-3-takeoff-and-4-land-no-longer-sent-out/