getObjectScale: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (duplicate arguments) |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3Dev | |game1= arma3Dev | ||
|2.01 | |version1= 2.01 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Returns the render scale of the object relative to the original model. | |desc= Returns the render scale of the object relative to the original model. | ||
| [[getObjectScale]] object | |s1= [[getObjectScale]] object | ||
| p1= object: [[Object]] - Object to return scale of. Can also be a [[nearestTerrainObjects|terrain object]] | |p1= object: [[Object]] - Object to return scale of. Can also be a [[nearestTerrainObjects|terrain object]] | ||
| [[Number]] - Scale relative to the original model | |r1= [[Number]] - Scale relative to the original model | ||
|x1= <code>_scale = [[getObjectScale]] _object;</code> | |x1= <code>_scale = [[getObjectScale]] _object;</code> | ||
| [[setObjectScale]] | |seealso= [[setObjectScale]] | ||
}} | }} |
Revision as of 16:15, 17 December 2020
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]]