setObjectScale

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 Development Branch version 2.012.01DEV BRANCH ONLY ⚠
Hover & click on the images for descriptions

Description

Description:
Scales an attached object or a Simple Object's model.
Problem(s):
The Arma 3 LOD limits still apply, meaning walk-able surfaces can only be X m in size, and collision in general will only work up to X m from object center. This command works on all objects in Eden Editor or scenario preview, but it will not save and will reset when objects get moved. Eden Editor support is only intended for artists. Setting the scale of actively simulated objects (Vehicles with players/AI in them) is possible, but not officially supported, you may encounter issues.

Syntax

Syntax:
object setObjectScale scale
Parameters:
object: Object - Must be either an attached object or Simple Object
scale: Number - Limited to 0.0001 to 65504, relative to the object model's normal scale
Return Value:
Nothing

Examples

Example 1:
_mrap attachTo [player,[0,0,0]]; _mrap setObjectScale 0.1;

Additional Information

See also:
getObjectScale
Groups:
Object Manipulation

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.