getObjectScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (duplicate arguments)
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=


| arma3Dev |Game name=
|game1= arma3Dev


|2.01|Game version=
|version1= 2.01


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


| Returns the render scale of the object relative to the original model. |DESCRIPTION=
|desc= Returns the render scale of the object relative to the original model.


| [[getObjectScale]] object |SYNTAX=|SYNTAX=
|s1= [[getObjectScale]] object


| p1= object: [[Object]] - Object to return scale of. Can also be a [[nearestTerrainObjects|terrain object]]. |PARAMETER1=
|p1= object: [[Object]] - Object to return scale of. Can also be a [[nearestTerrainObjects|terrain object]]


| [[Number]] - Scale relative to the original model |RETURNVALUE=
|r1= [[Number]] - Scale relative to the original model


|x1= <code>_scale = [[getObjectScale]] _object;</code> |EXAMPLE1=
|x1= <code>_scale = [[getObjectScale]] _object;</code>


| [[setObjectScale]] |SEEALSO=
|seealso= [[setObjectScale]]
}}
}}

Revision as of 17:15, 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:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
getObjectScale object
Parameters:
object: Object - Object to return scale of. Can also be a terrain object
Return Value:
Number - Scale relative to the original model

Examples

Example 1:
_scale = getObjectScale _object;

Additional Information

See also:
setObjectScale

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 | GETOBJECTSCALE]][[ Category: arma3Dev: Scripting Commands | GETOBJECTSCALE]]