Colshapes::newRectangle: Difference between revisions

From RAGE Multiplayer Wiki
m (category)
(Add missing dimension optional parameter)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Creating colshape, square in 2D plane
Creates a rectangle (square) ColShape 2D plane
==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
* '''width: <span style="color:#008017>Float</span>'''  
* '''width:''' {{RageType|Number}} in float
* '''height: <span style="color:#008017>Float</span>'''  
* '''height:''' {{RageType|Number}} in float
* '''dimension:''' {{RageType|Number}} (optional)
 
==Syntax==
==Syntax==
{{Shared}}
{{Shared}}
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.colshapes.newRectangle(x, y, width, height)
mp.colshapes.newRectangle(x, y, width, height, dimension)
</syntaxhighlight>
</syntaxhighlight>


Line 15: Line 17:




[[Category:ColShape]]
[[Category:ColShape API]]
[[Category:Shared Function]]
[[Category:Shared Function]]

Latest revision as of 12:58, 20 October 2020

Creates a rectangle (square) ColShape 2D plane

Parameters

  • x: Number in float
  • y: Number in float
  • width: Number in float
  • height: Number in float
  • dimension: Number (optional)

Syntax

Shared
mp.colshapes.newRectangle(x, y, width, height, dimension)

See Also