I admit that your explanations still don't make any sense to me. If it does not return to the calling function, then where does it return to?
Can you check the return path in the debugger of your development system? Or are you calling engine_getscript not from an external language but from within a script?
I'm calling it from within the script, I'm using this to create Triggers of which I can run custom functions off. The files are uploaded already, in the contest entry of me. If needed, I can point out where it occurs.
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.
I asked this before, because previously in A6, I could do this with execute. You suggested back then when i asked for a replacement to use this instead, so I did.
Ok, now I at least understand what you want to do. But still I don't know why you have a problem.
When you call a function, it does not matter how you got its pointer, as long as it's the right one. The function itself does not know that you called engine_getscript before. It just executes and returns.
Maybe something else in your project causes a problem? For testing, write a simple script that just gets and calls your function pointer. Check if it returns correctly. Also check if you've defined the prototype correctly and if you're really calling the right function pointer.
the entity that calls the function, was removed, thus the handle to you/my was invalid, and the function didnt get executed. I mis-understood this part, because i was thinking that my handle was the global dummy function i get the handle with (like i showed above).