Author Topic: checking player speed  (Read 725 times)

i want to make it so when a player's speeds hits a certain amount it does something, how could i do that?

%player.getVelocity();

Returns a vector.
« Last Edit: December 31, 2007, 08:25:18 PM by MrPickle »

To make it only return one number so you can compare it with other things, you could use VectorLen.
Code: [Select]
VectorLen(%player.getVelocity());Also, I'm not sure how you would perform an action when a player hits a certain speed, without a constant loop checking everybody's speed, which is a terrible solution.

To make it only return one number so you can compare it with other things, you could use VectorLen.
Code: [Select]
VectorLen(%player.getVelocity());Also, I'm not sure how you would perform an action when a player hits a certain speed, without a constant loop checking everybody's speed, which is a terrible solution.
lag issues? meh.. i was gonna make a joke wad where when you go so fast you break the sound barrier and make a bang sound. ah well...