Is it possible to pass messages to lua modules? (SOLVED)

I’ve moved proxy loading into a module helper and everything works as expected, except I want to init from the module once the ‘proxy_loaded’ message is received, but I’m not sure how to pass it to the module. Can anyone point me to some documentation for this? I searched forum and combed through docs but didn’t see it or may have missed it.

You need to manually pass the message from the on_message() function in your script to a function in your module. Lua modules do not automatically hook into the various lifecycle functions of the engine.

1 Like

Good to know. This makes sense. Thank you @britzl