on_exit
The on_exit function is executed just before the engine exits due to
a sys_exit call,
or A7.76 when the
Cancel button was hit on an engine error
message.
It can be used to free DLLs or release user-allocated memory.
Type
Event
Example:
function exit_event() { beep(); }
...
on_exit = exit_event;
sys_exit(NULL);
See also:
on_mouse_left, on_close, on_anykey, on_client, on_server,
on_load, sys_exit
► latest
version online