• GetVelocity
    5 replies, posted
Does GetVelocity work on a player? Apparently it doesn't because I'm getting an error complaining about it returning userdata. How can I get the velocity of a player, as a vector?
Can you give us the bit of code that's causing a problem?
[code]( objEnt:IsValid() and objEnt:IsPlayer() and ( (objEnt:GetVelocity()) < Vector(0,0,0) ) )[/code]
bump
ply:GetPhysicsObject():GetVelocity() returns the vector velocity at which the player is currently moving at.
Thanks.
Sorry, you need to Log In to post a reply to this thread.