Quote:
Originally posted by Loriel
Hey, it really does. I must have messed something else in the big script then.
|
I figured it out.
NPC Code:
if (playerenters) toweapons Test;
if (created || timeout) {
if (isweapon) setplayerprop #c,#v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
else message #v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
timeout = 0.05;
}
Then you see that screenx/y do not work inside a weapon, because it is setting your chattext to different values than the ones the NPC itself is chatting.