Scripting/Squirrel/Functions/Player.AddSpeed

From Vice City Multiplayer
Revision as of 14:24, 12 December 2018 by Sseebbyy (talk | contribs) (Created page with "== Syntax == Adds speed to a player. <pre> player.AddSpeed( Vector ) </pre> == Description == This function is adding speed to a player. == Example == The command will boost...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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