Scripting/Server/Functions/SetCameraMatrix
Takes over the camera. Both are Vectors.
Syntax
SetCameraMatrix(player, position, lookAt)Arguments
- Player player
- Vector position
- any lookAt
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.
Related pages
Section: Camera and audio (per player)
Categories: Server functions | Camera and audio (per player)