Camera::pointAtCoord: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
 
Line 8: Line 8:
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
== Example ==
<syntaxhighlight lang="javascript">
{{ClientsideCode|
// todo
<pre>
</syntaxhighlight>
//Pointing the camera to player's position
let { x, y, z } = mp.players.local.position;
camera.pointAtCoord(x, y, z);
</pre>
}}
 
==See also==
==See also==
{{Camera_definition_c}}
{{Camera_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 20:32, 12 September 2021