setObjectScale
Jump to navigation
Jump to search
Description
- Description:
- Scales an attached object or a Simple Object's model scale.
- Problems:
- The Arma LOD limits (link to lod page) still apply, meaning walkable surface can only be XXm in size, and collision in general will only work up to XXm from object center. This command works on all objects while in Eden Editor or Preview, but it will not save and will reset when object gets 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.
- Groups:
- Uncategorised
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:
- Return value needed
Examples
- Example 1:
_mrap attachTo [player,[0,0,0]]; _mrap setObjectScale 0.1;
Additional Information
- See also:
- getObjectScale
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | SETOBJECTSCALE]][[ Category: arma3dev: Scripting Commands | SETOBJECTSCALE]]