Scripting/Server/Functions/Vector

Creates a Vector. Missing numbers are 0.

Syntax

Vector(x, y, z)
Vector2D(x, y)

Arguments

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.

Section: Maths and strings

Categories: Server functions | Maths and strings