getObjectScale: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 14: | Line 14: | ||
|r1= [[Number]] - Scale relative to the original model | |r1= [[Number]] - Scale relative to the original model | ||
|x1= < | |x1= <sqf> | ||
private _objectScale = getObjectScale _object; | |||
if (_objectScale != 1) exitWith { hint "all good" }; | |||
if (_objectScale > 1) then | |||
{ | |||
hint "it's bigger!"; | |||
} | |||
else | |||
{ | |||
hint "it's smaller..."; | |||
}; | |||
</sqf> | |||
|seealso= [[setObjectScale]] | |seealso= [[setObjectScale]] | ||
}} | }} |
Revision as of 13:52, 5 May 2022
Description
- Description:
- Returns the render scale of the object relative to the original model.
- 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:
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