Перейти к содержанию

Camera::setActiveWithInterp

Материал из RAGE MP Wiki Archive

Syntax

<syntaxhighlight lang="javascript">camera.setActiveWithInterp(camFrom, duration, easeLocation, easeRotation);</syntaxhighlight>

Required Arguments

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

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> 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 </syntaxhighlight>

See also