09-21-2018, 06:21 AM
No sorry, but it's basically just the speedCheck function above called in the movement hook
|
GetSpeed() not working?
|
|
09-21-2018, 06:21 AM
No sorry, but it's basically just the speedCheck function above called in the movement hook
07-25-2019, 07:04 PM
Decent, need to accomplish something like this with mine.<p><br></p>
03-07-2020, 11:00 AM
BTW, the way you are calculating speed is wrong, you have to use pythagoras to get the value instead of just x + z.
The function can be used like this: Code: function OnPlayerMove(aPlayer, OldPosition, NewPosition)
Displacement = math.sqrt(((NewPosition.x-OldPosition.x)*(NewPosition.x-OldPosition.x))+((NewPosition.z-OldPosition.z)*(NewPosition.z-OldPosition.z)))
end |
|
« Next Oldest | Next Newest »
|