Home   Help Search Login Register  

Author Topic: velocity  (Read 627 times)

0 Members and 2 Guests are viewing this topic.

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
velocity
« on: 23 Jul 2003, 01:52:38 »
has anyone written a script that gets the velocity of a person/vehicle/whatever in one number (instead of in an array)?

deaddog

  • Guest
Re:velocity
« Reply #1 on: 23 Jul 2003, 03:13:29 »
It's the "speed" function.

Speed returns the velocity in km/h.  To convert to meters/second, multiply the results by 0.277:

_s = (speed player) * 0.2777


Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:velocity
« Reply #2 on: 23 Jul 2003, 03:14:25 »
Err... velocity is a vector (ie. has a directional component) and as such can't be expressed as a single number...

However, if it's speed you're after, you can use the command:

speed unit

To find the linear speed of a unit ;)

[size=0.5]Edit: Bah! Beaten!! ;D[/size]
« Last Edit: 23 Jul 2003, 03:15:53 by Sui »

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:velocity
« Reply #3 on: 23 Jul 2003, 03:27:45 »
you sound just like my last physics teacher :P

thanks for the info!!