- Documentation
- Shared functions
- setObjectScale
Function
setObjectScale
Changes an object's size (1 = normal, 2 = twice as big). The game applies one scale to all axes - the first number counts.
Syntax
bool setObjectScale(object theObject, float scale [, float scaleY = scale, float scaleZ = scale])Arguments
theObjectobject- The object.
scalefloat- Scale.
scaleYfloat, optional = scale- Y scale (compatibility with existing scripts).
scaleZfloat, optional = scale- Z scale (compatibility with existing scripts).
Returns
true on success.
Example
local giantBin = createObject(1337, 2495, -1660, 13)
setObjectScale(giantBin, 4)