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)