Tracking Speed

Status
Not open for further replies.

Arch

Legions Developer
Where or how do you find the value that the speed display is linked to? I tried the value ServerConnection.getControlObject().getVelocity() but it gave me 3 values and I'm guessing those take direction and speed into the equation due to Velocity being a vector. so, how would I just get the player speed?

Legions%202012-03-07%2019-55-14-29.bmp
 

Belberith

Legions Developer
The function VectorLen() does the magnitude calculation for you, so you don't have to go and find the speed display stuff. So VectorLen(ServerConnection.getControlObject().getVelocity()) would return the speed and not the velocity of the player.
 

Arch

Legions Developer
The function VectorLen() does the magnitude calculation for you, so you don't have to go and find the speed display stuff. So VectorLen(ServerConnection.getControlObject().getVelocity()) would return the speed and not the velocity of the player.
Beautiful, thanks. Mods can lock this.
 
Status
Not open for further replies.
Top