Workshop.codes
Create

Set Object Scale Last updated April 14, 2025

Description

Resizes a previously spawned static object by applying a new scale vector, overriding its current size. Each axis is scaled independently, allowing non-uniform stretching. Supports reevaluation. Useful for growing or shrinking props dynamically, simulating construction, or building resize handles in a map editor context.

Snippet

Set Object Scale(Last Created Object, Vector(2, 1, 2));

Properties

Returns: Void
Parameters: Object, Scale

Object
Type: Object, Default: Last Created Object
The static object whose scale will be set.

Scale
Type: Vector, Default: Vector(1, 1, 1)
The new scale of the object on each axis. Supports reevaluation.

Workshop.codes