// select an object in Eden Editor and execute the following code in the Debug Console. When moving the object, the effect is reset!private_object = get3DENSelected"Object"select0;
_objectsetObjectScale0.1;
// a not-so-great EachFrame workaround for a non-attached object// a normal object that is not attached must be scaled each frame// make sure the object is LOCAL in order to not saturate the network!private_localNormalObject = "C_Offroad_01_F"createVehicleLocalgetPosATLplayer;
// the object is not attached to anythingaddMissionEventHandler [
"EachFrame",
{ _thisArgsparams ["_obj", "_scale"]; _objsetObjectScale_scale; },
[_localNormalObject, 0.1]
];
Example 5
// only do the following in single player;// NEVER do such EachFrame in multiplayer!!// the performance will be terrible, the network will be saturated, the scaling may desync and not be perfectprivate_globalNormalObject = "C_Offroad_01_F"createVehiclegetPosATLplayer;
addMissionEventHandler [
"EachFrame",
{ _thisArgsparams ["_obj", "_scale"]; _objsetObjectScale_scale; },
[_globalNormalObject, 0.1]
];
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.
Note
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.
Important
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 normalises the directions,
thus the scale in the transformation matrix becomes 1), so those commands should be run before resizing the object.
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.