Scripting/Squirrel/Functions/Player.AddSpeed
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 ) );
}
}