There must be something I don't understand about how GV's behave in C2 because mine isn't behaving as I'd expect.
I have my global variable, and I set it to -1 every loop. If an object is created, I set the GV to the object's UID, so that I can then retrieve the UID later on and work with the new object (I'm doing this because of the issue where a newly created object doesn't become accessible until a new top-level event... it's necessary in my case).
So I then do a test, which is basically saying, if my GV is NOT -1, a new object was created, so I can work with it. But for some reason, when I set the GV and then test it, it doesn't respond.
So like this.
Every tick - GV = -1
Event - Create object and set GV to the new UID.
Next top-level event - If GV <> -1, do stuff.
It doesn't work. When a GV is altered, is it altered immediately or do I need to wait for new events or something?