gta.setCameraTarget: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = gta.setCameraTarget
|side = client
|type = function
|type = function
|name = gta.setCameraTarget
|games = iii vc sa
|usage = set the camera position and camera look-at position to be next to and facing an entity
|desc = set the camera position and camera look-at position to be next to and facing an entity
|parameters = Entity entity, bool jumpCut, int cameraMode
|arg1 = Entity entity The target entity for the camera.
|parameter1 = Entity entity The target entity for the camera.
|arg2 = bool jumpCut Whether to cut (teleport) or interpolate the camera to the new position.
|parameter2 = bool jumpCut Whether to cut (teleport) or interpolate the camera to the new position.
|arg3 = int cameraMode The camera mode.
|parameter3 = int cameraMode The camera mode.
|return = void
|bcMaxVersion = 1.0.71
|freturn = void
|bcName = game.setCameraTarget
|previousName = game.setCameraTarget 1.0.71
|return1 = void
|returnFail1 = void
}}
}}

Latest revision as of 20:36, 19 November 2022

Function Client Only icon-iii.png icon-vc.png icon-sa.png Online and Offline

Available since Client 1.0.0

void gta.setCameraTarget(Entity entity, bool jumpCut, int cameraMode)

The gta.setCameraTarget function is used to set the camera position and camera look-at position to be next to and facing an entity.

Parameters

1) Entity entity The target entity for the camera.
2) bool jumpCut Whether to cut (teleport) or interpolate the camera to the new position.
3) int cameraMode The camera mode.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

icon-iii.png icon-vc.png icon-sa.png gta.cameraInterior
icon-iii.png icon-vc.png icon-sa.png gta.cameraMatrix
icon-iii.png icon-vc.png icon-sa.png gta.cameraTarget
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.fadeCamera
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.fading
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.restoreCamera
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.setCameraLookAt
icon-iii.png icon-vc.png icon-sa.png gta.setCameraLookAtEntity
icon-iii.png icon-vc.png icon-sa.png gta.setCameraMatrix
icon-iii.png icon-vc.png icon-sa.png gta.setCameraTarget
icon-iii.png icon-vc.png icon-sa.png gta.setGenerateCarsAroundCamera
icon-iii.png icon-vc.png icon-sa.png gta.updateCamera