getObjectScale
Shared
Returns an object's scale along each axis.
vec3|false getObjectScale(object object)
Parameters
| Name | Type | Description |
|---|---|---|
| object | object | The object. |
Returns
The scale as a vector, or false if the object has no entity.
Example
local scale = getObjectScale(ramp)
outputDebugString(("Scale: %.2f, %.2f, %.2f"):format(scale.x, scale.y, scale.z))