Checkpoint::destination: Difference between revisions
(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...") |
mNo edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
==Getter== | ==Getter== | ||
* | * {{RageType|Vector3}} | ||
==Setter== | ==Setter== | ||
* | * {{RageType|Vector3}} | ||
== Example == | == Example == | ||
{{ServersideCode| | |||
<pre> | |||
< | |||
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 | ||
</ | </pre> | ||
}} | |||
[[Category:Checkpoint API]] | |||
[[Category:Server-side Property]] | |||
Latest revision as of 16:48, 17 May 2019
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