From Bohemia Interactive Community
Jump to navigation
Jump to search
Hover & click on the images for description
Description
- Description:
- Scales an attached object or a Simple Object's model.
- Problems:
- The Arma 3 LOD limits still apply, meaning walkable surfaces can only be (70?)m in size, and collision in general will only work up to (?)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 non-simple objects, such as vehicles with players/AI in them, static objects (simulation = "house" in config), etc. might be possible, but not officially supported. You may encounter issues.
⚠
Changing the direction of the object (e.g. using
setDir,
setVectorDir, etc.) will reset the object back to its original size (probably because the engine normalizes the directions, thus the scale in the transformation matrix becomes 1), so those commands should be run
before resizing the object.
- Groups:
- Object Manipulation
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:
- Example 2:
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
- Waffle SS.
- Posted on Dec 23, 2021 - 06:29 (UTC)
- For those interested in the extra cursed, you can scale non-simple objects by running the command every frame.
The multiplayer performance of this is likely terrible.
- P1ker1
- Posted on Jan 04, 2022 - 22:17 (UTC)
- Note that
doubles the scale factor of an object, not the volume. In the case of a cube this would be the length of an edge.
If you want to multiply the volume, raise the scale to the power of 1/3.