native

velocity_by_aim

Syntax

native velocity_by_aim(iIndex, iVelocity, Float:vRetValue[3]);

Description

Calculates velocity in the direction player is looking.

Parameters

iIndex Client index
iVelocity Multiply vRetValue length by this much
vRetValue Store the calculated velocity in this vector.

Return

This function has no return value.

Error

If client is not connected or client index is not
within the range of 1 to MaxClients.