Originally Posted By: Pappenheimer
Originally Posted By: MrGuest
Originally Posted By: Pappenheimer
Write this into the main function:

on_0 = NULL;
this won't work unless it's after a wait() command as default.c still overwrites key functions set to NULL.

or just comment out #include default.c

This makes no sense to me.
The engine reads through the scripts from beginning to end.
When #include default.c is before the main function, it can't overwrite the on_0 = NULL; - that's at least how I understand it.
lol, if I ever understood what gamestudio tried doing I'm sure I'd have a medal by now

Code:
#include <acknex.h>
#include <default.c>

void main(){
	
	on_esc = NULL;
}

running this will still close the application when pressing escape, though I'd of thought when reading through default.c it would run any _startup() functions before the main() function, obvsiously not in this case crazy