Camera::setActive: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
Line 21: Line 21:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Camera_function_c}}
{{Camera_definition_c}}
[[Category:Clientside API]]

Revision as of 22:56, 15 June 2018

Description

Set camera as active/inactive.

Syntax

camera.setActive(active);

Required Arguments

  • active: Boolean

Return value

  • Undefined

Example

Creates a camera with the stated positions and rendering it.

let cam = mp.cameras.new('default', new mp.Vector3(0,0,0), new mp.Vector3(0,0,0), false);
cam.setActive(true);
mp.game.cam.renderScriptCams(true, false, 0, true, false);

See also