Scripting/Squirrel/Functions/Player.AddSpeed: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(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...") |
(No difference)
|
Revision as of 14:24, 12 December 2018
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 ) );
}
}