Scripting/Squirrel/Functions/Player.AddSpeed

From Vice City Multiplayer
Jump to navigation Jump to search

Syntax

Adds speed to a player.

player.AddSpeed( Vector )

Description

This function is adding speed to a player.

Example

The command will boost the player to the sky, with 5 more speed.

function onPlayerCommand( player, cmd )
{
     if( cmd == "up" )
     {
          player.AddSpeed( Vector( 0, 0 5 ) );
     }
}

Related Functions