setObjectScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (links)
m (duplicate arguments)
Line 1: Line 1:
{{Command
{{Command


|game1= arma3dev |Game name=
|game1= arma3dev


|version= 2.01 |Game version=
|version1= 2.01


|arg=  |Multiplayer Arguments ("local" or "global")=
|arg=  |Multiplayer Arguments ("local" or "global")


|eff=  |Multiplayer Effects ("local" or "global")=
|eff=  |Multiplayer Effects ("local" or "global")


|serverExec=  |Multiplayer Execution ("server" or empty)=
|serverExec=  |Multiplayer Execution ("server" or empty)


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation
____________________________________________________________________________________________


|descr= Scales an [[attachTo|attached object]] or a [[Arma_3_Simple_Objects|Simple Object]]'s model scale. |Description=
|descr= Scales an [[attachTo|attached object]] or a [[Arma_3_Simple_Objects|Simple Object]]'s model scale.


|mp= |Multiplayer Behaviour=
|mp=


|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.
|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 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.
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.
____________________________________________________________________________________________


|s1= object [[setObjectScale]] scale |Syntax=
|s1= object [[setObjectScale]] scale


|p1= object: [[Object]] - Must be either an [[attachTo|attached object]] or [[Arma 3 Simple Objects|Simple Object]]|Parameter 1=
|p1= object: [[Object]] - Must be either an [[attachTo|attached object]] or [[Arma 3 Simple Objects|Simple Object]]|


|p2= scale: [[Number]] - Limited to 0.0001 to 65504, relative to the object model's normal scale |Parameter 2=
|p2= scale: [[Number]] - Limited to 0.0001 to 65504, relative to the object model's normal scale
____________________________________________________________________________________________


|x1= <code>_mrap [[attachTo]] <nowiki>[</nowiki>[[player]],[0,0,0]];
|x1= <code>_mrap [[attachTo]] <nowiki>[</nowiki>[[player]],[0,0,0]];
_mrap [[setObjectScale]] 0.1;</code> |Example 1=
____________________________________________________________________________________________


|seealso= [[getObjectScale]] |See Also=
_mrap [[setObjectScale]] 0.1;</code>
 
|seealso= [[getObjectScale]]
}}
}}

Revision as of 16:16, 17 December 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 2.01|2.01]]
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 2.01]][[ Category: arma3dev: New Scripting Commands | SETOBJECTSCALE]][[ Category: arma3dev: Scripting Commands | SETOBJECTSCALE]]