Camera::setActiveWithInterp

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

camera.setActiveWithInterp(camFrom, duration, easeLocation, easeRotation);

Required Arguments

  • camFrom: Camera.Handle
  • duration: int
  • easeLocation: int
  • easeRotation: int

Return value

  • Undefined

Example

var camera1 = mp.cameras.new('default', new mp.Vector3(111.1, 222.2, 12.37), new mp.Vector3(0, 0, 0), 40);
var camera2 = mp.cameras.new('default', new mp.Vector3(222.2, 333.3, 1.37), new mp.Vector3(0, 0, 0), 40);
camera2.setActiveWithInterp(camera1.handle, 2000, 0, 0); // 2000ms = 2secs, 0, 0 - idk

See also