Colshapes::newCircle: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Creating colshape, circle in the 2D plane
{{sharedFunctionJS}}
 
Create a ColShape of circle in the 2D plane
 
{{JSContainer|
==Parameters==
==Parameters==
* '''x: <span style="color:#008017>Float</span>'''
* '''x: {{RageType|Number}} in float
* '''y: <span style="color:#008017>Float</span>''' 
* '''y: {{RageType|Number}} in float
* '''radius: <span style="color:#008017>Float</span>'''
* '''radius: {{RageType|Number}} in float
* dimension: {{RageType|Number}} (optional parameter)


==Syntax==
==Syntax==
<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>
<pre>
<syntaxhighlight lang="javascript">
mp.colshapes.newCircle(x, y, radius, dimension)
mp.colshapes.newCircle(x, y, radius)
</pre>
</syntaxhighlight>
 
</div>
==Example==
<pre>
// TODO
</pre>
}}
 
==See Also==
==See Also==
{{Colshapes_function}}
{{Colshapes_function}}
[[Category:ColShape API]]
[[Category:Shared Function]]

Latest revision as of 11:35, 3 December 2019

Shared
Function

 JavaScript


Create a ColShape of circle in the 2D plane

JavaScript Syntax

Parameters

  • x: Number in float
  • y: Number in float
  • radius: Number in float
  • dimension: Number (optional parameter)

Syntax

mp.colshapes.newCircle(x, y, radius, dimension)

Example

// TODO


See Also