Why do you call engine_getscript from within a script? This is a function of the SDK, to be used in external languages. In a script, the function pointer is just the name of the function.