AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [solved]how to get Z coord move speed of a player? (https://forums.alliedmods.net/showthread.php?t=99172)

Owyn 08-02-2009 08:48

[solved]how to get Z coord move speed of a player?
 
hi, i want to get player scramble speed when he is on a ladder for x,y speed i use pev_velocity, what can i use for z speed?

xPaw 08-02-2009 09:14

Re: how to get Z coord move speed of a player?
 
velocity[ 2 ] ?

Bugsy 08-02-2009 09:15

Re: how to get Z coord move speed of a player?
 
Just tested and it works even when on a ladder
PHP Code:

new FloatfVelocity];
pevid pev_velocity fVelocity );

client_printid print_chat "Y-speed = %f" fVelocity] ); 


Owyn 08-02-2009 09:40

Re: how to get Z coord move speed of a player?
 
thx, i used only vector length so didn't think it had 3 params)


All times are GMT -4. The time now is 18:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.