I noticed a thing in one of my scripts that didn’t work. I was a bit suprised by this and changed it so now it works. I just thought it would work, but there’s probably a logical explanation for this. What I had written was this:
Hmmm. Ok. This with the “!” is still something I’ve never fully grasped, cause sometimes it seems to work and othertimes not. But thinking about it, I guess with a function like if(!GetIsPC(oPC)) return; the game just checks if it’s true or false, and that’s the way it did here too. I didn’t know you could put a “!” in front of the function like that, before the parenthesis.
Well, that actually makes more sense to me, that you need another paranthesis around the whole thing. I’ve never seen a “!” outside a paranthases before.