gta.setCameraLookAtEntity

From GTA Connected
Revision as of 19:51, 28 September 2019 by Mex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

gta.setCameraLookAtEntity

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

Usage: set the camera position, and camera look-at position to the position of an entity

Parameters

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

Return

void

On failure: void