Checkpoint::radius: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property is used to set or get the radius of the checkpoint. ==Getter== * '''<span style="color:#008017">Float</span>''' ==Setter== * '''<span style="color:#008017">Floa...")
 
m (cate)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:


==Getter==
==Getter==
* '''<span style="color:#008017">Float</span>'''
* {{RageType|Number}} in float
==Setter==
==Setter==
* '''<span style="color:#008017">Float</span>'''
* {{RageType|Number}}


== 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 radius = checkpoint.radius; // get checkpoint radius
const radius = checkpoint.radius; // get checkpoint radius
console.log(radius);
console.log(radius);


checkpoint.radius = 5; // set checkpoint radius
checkpoint.radius = 5; // set checkpoint radius
</syntaxhighlight>
</pre>
</div>
}}


==See Also==
[[Category:Checkpoint API]]
{{Checkpoint_function}}
[[Category:Server-side Property]]

Latest revision as of 16:49, 17 May 2019

This property is used to set or get the radius of the checkpoint.

Getter

  • Number in float

Setter

  • Number

Example

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

checkpoint.radius = 5; // set checkpoint radius