It should be read-only and the only parameter is the ID of the auto-run event (starting from "P Switch - Start"):
Here's an example of an usage.
Code: Select all
call showmsg("The level has ended!")
This would open a lot of possibilities, like executing a script when an NPC dies/gets killed, when the player gets a power-up or gets hurt, etc.. All without having to do messy autorun events triggering.