Checkpoint::destination: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property is used to set or retrieve the direction of the checkpoint. ==Getter== * '''<span style="color:#008017">Vector3</span>''' ==Setter== * '''<span style="color:#00...")
 
m (Replaced HTML with template)
Line 7: Line 7:


== Example ==
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServersideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
const destination = checkpoint.destination; // get checkpoint destination
const destination = checkpoint.destination; // get checkpoint destination
console.log(destination);
console.log(destination);


checkpoint.destination = new mp.Vector3(10, 10, 10); // set checkpoint destination
checkpoint.destination = new mp.Vector3(10, 10, 10); // set checkpoint destination
</syntaxhighlight>
</pre>
</div>
}}


==See Also==
==See Also==
{{Checkpoint_function}}
{{Checkpoint_function}}

Revision as of 12:21, 26 October 2018

This property is used to set or retrieve the direction of the checkpoint.

Getter

  • Vector3

Setter

  • Vector3

Example

Server-Side
const destination = checkpoint.destination; // get checkpoint destination
console.log(destination);

checkpoint.destination = new mp.Vector3(10, 10, 10); // set checkpoint destination

See Also