GetScale - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Returns the current scale of this reference.
Syntax[edit | edit source]
float Function GetScale() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The current scale of the reference.
Examples[edit | edit source]
Debug.Trace("The box has a scale of: " + box.GetScale())
Notes[edit | edit source]
- Internally, a reference's scale is stored as an integer percentage (i.e. 100 for normal size; 200 for double-sized). This function returns that scale value divided by 100 (with additional multipliers for actors). This means that a reference's scale cannot be gotten or set to a precision of more than 0.01.