Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   mousex/mousey help (https://forums.graalonline.com/forums/showthread.php?t=48928)

Kappa00p2p 11-01-2003 04:41 AM

mousex/mousey help
 
could anyone help me with a script im making? i made most of it but i cant figure out how to make the player face the mouse direction at all times. if anyone could help me it would be much help for my server. An similar script is on kingdoms,when u move a skill around the screen... i want somthing like that but without having the mouse to be held down for it to work. ty

Python523 11-01-2003 05:07 AM

getdir

Lance 11-01-2003 05:16 AM

Quote:

Originally posted by Python523
getdir
(delta x,delta y)

ForgottenLegacy 11-01-2003 06:37 AM

getdir(x value of the mouse,y value of the mouse)

this will give you a number between 0 and 3

Kappa00p2p 11-01-2003 06:39 AM

hey i also need to know when u use the shoot command... what part do u need to make mousex,and mousey to make it shoot where the mouse is?

[edit] i tried getdir(mouse x val,mouse y val) <useing mousex/y and it isnt working right. it only will make the direction right when the mouse is in the upper right hand corner and the rest of the time the player is facing down. [/edit]

Kaimetsu 11-01-2003 07:02 AM

getdir(delta x,delta y)

If means the spacial (x,y) difference between the object and the thing towards which it should point.

Shame on you, ForgottenLegacy. Feeding newbies scripts is bad enough, but you could at least use one that works.

Kappa00p2p 11-01-2003 07:10 AM

lol!
i cant figure this out...

Python523 11-01-2003 07:27 AM

asking for full scripts... not making an effort to try to do the script even when the answer is right in front of you, closed, read the forum rules


All times are GMT +2. The time now is 05:03 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.