Scripting/Client/Functions/SetCameraTarget
Points the game camera at a Player or Vehicle handle.
Syntax
SetCameraTarget(entity)Arguments
- entity value
Example
function onScriptLoad()
{
SetCameraTarget( true );
}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
- SetCameraMatrix
- RestoreCamera
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera