Colshapes::newCuboid: Difference between revisions

From RAGE Multiplayer Wiki
m (Switched from server side to shared)
(Add missing dimension optional parameter)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Creating colshape, 3d cube
{{SharedFunctionJS}}
 
Creates a cuboid ColShape in 3D space
==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>'''  
* '''z:'''  {{RageType|Number}} in float
* '''depth: <span style="color:#008017>Float</span>'''  
* '''width:''' {{RageType|Number}} in float
* '''height: <span style="color:#008017>Float</span>'''  
* '''depth:''' {{RageType|Number}} in float
* '''height:''' {{RageType|Number}} in float
* '''dimension:''' {{RageType|Number}} (optional)
 
==Syntax==
==Syntax==
{{Shared}}
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.colshapes.newCuboid(x, y, z, width, depth, height)
mp.colshapes.newCuboid(x, y, z, width, depth, height, dimension)
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{Colshapes_function}}
{{Colshapes_function}}
[[Category:ColShape API]]
[[Category:Shared Function]]

Latest revision as of 23:32, 19 October 2020

Shared
Function

 JavaScript


Creates a cuboid ColShape in 3D space

Parameters

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

Syntax

mp.colshapes.newCuboid(x, y, z, width, depth, height, dimension)

See Also