Scripting/Server/Functions/Vector
Creates a Vector. Missing numbers are 0.
Syntax
Vector(x, y, z)Vector2D(x, y)Arguments
- float x
- float y
- float z
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "vector" )
{
local pos = player.Pos;
Vector( pos.x, pos.y, pos.z );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Maths and strings
Categories: Server functions | Maths and strings