Jump to content

Recommended Posts

Posted

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.

  • Recently Browsing   0 members

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