Scripting/Server/Functions/SetCameraMatrix

Takes over the camera. Both are Vectors.

Syntax

SetCameraMatrix(player, position, lookAt)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "setcameramatrix" )
	{
		SetCameraMatrix( player, player.Pos, 0 );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Camera and audio (per player)

Categories: Server functions | Camera and audio (per player)