setObjectScale
Shared
Changes an object's size, evenly or along each axis.
bool setObjectScale(object object, float scale [, float scaleY = scale, float scaleZ = scale, bool scaleCollision = true])
Parameters
| Name | Type | Description |
|---|---|---|
| object | object | The object. |
| scale | float | The scale along x, or along every axis if it is the only number. A vector with all three also works. |
| scaleY | float | The scale along y.default scale |
| scaleZ | float | The scale along z.default scale |
| scaleCollision | bool | Whether the object's collision follows the scale.default true |
Returns
true once the scale is set.
On the server, the scale reaches every client.
Example
setObjectScale(ramp, 2) -- twice as big
setObjectScale(sign, 1, 1, 3, false) -- only taller, same collision