Jump to content

moving an element using setElementVelocity


AHSS

Recommended Posts

Posted

i want to know how to make an element move with setElementVelocity like move it to certain coordinates but make it moves smoothly i know moveObject but im talking about elements and i want it with setElementVelocity

like the velocity gun :D

thanks in advance.

Posted

velocity works for peds and vehicles only.

and basically you need to check onClientRender how close you are to target, and set velocity smaller when getting close

and

velocity*161=kph

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...