http://www.conitec.net/beta/askript-befehl.htm

Quote:

Special functions
Events are functions ...

Functions ending with ..._startup are executed right after the main() function, and LC before the engine and video device is initialized. This way, every script can have its own startup function which initializes its variables or objects. Example:

Code:
function debug_startup() // automatically started if this script is included
{
debug_panel.visible = on;
while (1)
{ // run forever
debug_panel.pos_y = screen_size.y - 15;
fps = 0.9*fps + 0.1/time;
wait(1);
}
}