setObjectScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Article creation)
 
(updated problems and command group)
Line 10: Line 10:


|serverExec=  |Multiplayer Execution ("server" or empty)=
|serverExec=  |Multiplayer Execution ("server" or empty)=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 18:
|mp= |Multiplayer Behaviour=
|mp= |Multiplayer Behaviour=


|pr= 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.
|pr= The {{arma3}} [[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 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.
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. |Problems=
Setting the scale of actively simulated objects (Vehicles with players/AI in them) is possible, but not officially supported, you may encounter issues. |Problems=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 34: Line 36:
|seealso= [[getObjectScale]] |See Also=
|seealso= [[getObjectScale]] |See Also=
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|User Name]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Non-automatic appropriate categories go here, e.g
[[Category:Scripting Commands {{arma3}}|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
-->

Revision as of 12:27, 7 December 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
Hover & click on the images for description

Description

Description:
Scales an attached object or a Simple Object's model scale.
Problems:
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.
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:
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]]