Scripting/Squirrel/Functions/Player.Speed

From Vice City Multiplayer
Jump to navigation Jump to search

Syntax

read - player.Speed
set - player.Speed = Vector( x, y, z )

Description

This function is setting or returning player's speed.

Example

function onPlayerCommand( player, cmd )
{
     if( cmd == "up" )
     {
          player.Speed.z += 5;
     }
}

Related Functions