I had a strange experience with a pointer, let's see if this occurance belongs in the bug hunt section:
An entity action was referring to itself using "my" like so.
while(me)
{
my.pan -= 90;
wait(1);
}
I start the game and I get an empty pointer error. Eh? So what I did was I inserted a beep; before and after the loop, and one at the beginning for good measure. Upon restarting the test run, I got two beeps; one at the beginning and one right before the loop, the third beep did not occur because the loop was running and therefore, "my" was a valid pointer. Needless to say I also got the empty pointer error as well.
How can a "while(me)" loop be running and at the same time the "my" pointer be empty, within an action assigned to an entity? There were no other bits of code setting "me" to null and the entity was not being removed. I clicked "OK" and continued to see my entity on screen, the FPS was seriously hit as usual when you "OK" past a script error on a test run.
How did I resolve this? I didn't; I removed the beep; functions and tested again and it worked fine.
Last question: How can the beep; function be the cause of an empty "my" pointer when the error occured before (and after, meaning it had its origins elsewhere)I placed the beep; function in the action? This was the most strange A7 goblin that I have ever seen.