Jump to content

Event handling in DCS using lua script


Recommended Posts

Hi. Just started learning lua.

 

I've been trying hard to understand how to write my own event handler with lua but to no avail. I know it has something to do with writing your event handler function and then calling ...

 

function world.addEventHandler(handler)

world.eventHandlers[handler] = handler

end

 

in the EventHandlers.lua file but haven't gotten beyond that. Would someone kindly be able to show me a concrete, step-by-step example of say just printing "Hello World" whenever an event occurs in a mission?

 

Thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...