Thread: screenx/y
View Single Post
  #5  
Old 10-30-2002, 04:09 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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.
Reply With Quote