Jump to content

How about moving your head?


Otto

Recommended Posts

Posted

I was thinking on a script just for move the head of the ped while he moves the mouse.

Imagine the human moves the mouse to the right, the ped will move it head to the right.

Which functions should I use? Is it possible to do it? Is it already on the MTA files (Like on SAMP)?

Posted
and dont forget to use
addEventHandler("onClientRender",getRootElement(),lookAt) 

why?

all he needs to do is set the ped look at when the mouse moves around..

If you want a smooth movement use onClientPreRender

Posted
and dont forget to use
addEventHandler("onClientRender",getRootElement(),lookAt) 

why?

all he needs to do is set the ped look at when the mouse moves around..

If you want a smooth movement use onClientPreRender

actually, onClientCursorMove will provide the smoothness. No need for render events

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...