How to make a definition name for the custom event?
Posted: Mon Mar 06, 2023 11:10 pm
How to make a definition name for the custom event?
I generated uint event name:
And to "hear" it, I use:
But how can i create a definitive name for other mods?
Classic events are defined as:
How do I add a name to my event?
I generated uint event name:
Code: Select all
local event_name = script.generate_event_name()
Code: Select all
script.on_event(new_event, check_test_event)
Classic events are defined as:
Code: Select all
script.on_event(defines.events.EVENTNAME, ACTION)