Camera::isActive: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
Line 7: Line 7:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let camera = mp.cameras.new('default', new mp.Vector3(-485, 1095.75, 323.85), new mp.Vector3(0,0,0), 40); // Creates the camera
 
if (camera.isActive()) {
  camera.setFov(15);
} else {
  camera.setActive(true);
}
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Camera_definition_c}}
{{Camera_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 23:33, 11 December 2020