setColShapeSize
Client-side
Server-side
Shared
Pair: getColShapeSize
OOP Syntax Help! I don't understand this!
- Method:colshape:setSize(...)
Syntax
bool setColShapeSize ( colshape shape, float a, [ float b = nil, float c = nil ] )Required Arguments
- shape: The colshape you wish to change the size of.
- a: width for cuboid and rectangle or height for tube.
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.
Returns
- bool: result
Returns true if the size was changed, false if invalid arguments were passed.
Code Examples
Script Example Missing
Function setColShapeSize needs a script example. Help out by writing one.
See Also
Colshape Functions
- addColPolygonPoint
- createColCircle
- createColCuboid
- createColPolygon
- createColRectangle
- createColSphere
- createColTube
- getColPolygonHeight
- getColPolygonPointPosition
- getColPolygonPoints
- getColShapeRadius
- getColShapeSize
- getColShapeType
- isInsideColShape
- removeColPolygonPoint
- setColPolygonHeight
- setColPolygonPointPosition
- setColShapeRadius
- setColShapeSize