gta.setCameraTarget: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = gta.setCameraTarget | ||
|side = client | |||
|type = function | |type = function | ||
| | |games = iii vc sa | ||
| | |desc = set the camera position and camera look-at position to be next to and facing an entity | ||
| | |arg1 = Entity entity The target entity for the camera. | ||
|arg2 = bool jumpCut Whether to cut (teleport) or interpolate the camera to the new position. | |||
| | |arg3 = int cameraMode The camera mode. | ||
| | |return = void | ||
| | |freturn = void | ||
|previousName = game.setCameraTarget 1.0.71 | |||
| | |||
| | |||
}} | }} |
Latest revision as of 20:36, 19 November 2022
Function
Client Only
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
gta.cameraInterior
gta.cameraMatrix
gta.cameraTarget
gta.fadeCamera
gta.fading
gta.restoreCamera
gta.setCameraLookAt
gta.setCameraLookAtEntity
gta.setCameraMatrix
gta.setCameraTarget
gta.setGenerateCarsAroundCamera
gta.updateCamera