Blip::rotation: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{Incomplete Functions}}")
 
No edit summary
Line 1: Line 1:
{{Incomplete Functions}}
This function is used to change the blip rotation.
 
==Syntax==
<syntaxhighlight lang="typescript">
blip.rotation = 0;
</syntaxhighlight>
 
==Example==
This will change the blip to be upside-down.
 
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0));
 
createdBlip.rotation = 180;
</syntaxhighlight>
</div>
 
==See Also==
{{Blip_function}}

Revision as of 14:41, 8 December 2017

This function is used to change the blip rotation.

Syntax

blip.rotation = 0;

Example

This will change the blip to be upside-down.

Server-Side
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0));

createdBlip.rotation = 180;

See Also