gta.setCameraLookAtEntity

Revision as of 19:51, 28 September 2019 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Available since Client 1.0.0

void gta.setCameraLookAtEntity(Vec3 cameraPosition, Entity entity, bool jumpCut)

The gta.setCameraLookAtEntity function is used to set the camera position, and camera look-at position to the position of an entity.

Parameters

1) Vec3 cameraPosition The new 3D position for the camera.
2) Entity entity The target entity for the camera to look at.
3) bool jumpCut Whether to cut (teleport) or interpolate the camera to the new position.

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

  • This function was previously named game.setCameraLookAtEntity in client version 1.0.71.

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