Scripting/Client/Functions/SetCameraMatrix
Fixed scripted camera at position looking at lookAt. Both are Vectors/tables.
Syntax
SetCameraMatrix(position, lookAt)Arguments
- Vector position – Fixed scripted camera at
positionlooking atlookAt. - any lookAt – Fixed scripted camera at
positionlooking atlookAt.
Example
function onScriptLoad()
{
SetCameraMatrix( player.Pos, 0 );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- GetScreenWidth
- WorldPosToScreen
- ScreenPosToWorld
- GetGroundZLevel
- GetGroundZLevelForPos
- GetGroundZLevelForPosLoad
- Draw3DText
- Draw3DSprite
- Draw3DTextWorld
- Draw3DSpriteWorld
- SetCameraTarget
- RestoreCamera
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera