Camera::setParams

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

camera.setParams(x, y, z, rx, ry, rz, fov, duration, p9, p10, p11);

Required Arguments

  • x: float
  • y: float
  • z: float
  • rx: float
  • ry: float
  • rz: float
  • fov: float
  • duration: number
  • p9: number
  • p10: number
  • p11: number

Return value

  • Undefined

Example

Client-Side
let gameplayCam = mp.cameras.new ( "gameplay" );
let pos = gameplayCam.getCoord();
let rot = gameplayCam.getRot ( 2 );
let fov = gameplayCam.getFov();

testCam.setParams ( pos.x, pos.y, pos.z, rot.x, rot.y, rot.z, fov, 5000, 1, 1, 2 ); 

See also