Originally Posted by
se891
can you make the script show the speed without the tenths
meaning if my speed is 534.03431 i want it to show 543 only since the tenths don't matter
thanks
PHP Code:
calculatePlayerSpeed() {
speed = int(distance(self.origin, self.previousorigin)); // or DistanceSquared (= cheaper/faster function)
self.previousorigin = self.origin;
return speed;
}