Difference between revisions of "GetScale - ObjectReference"
Jump to navigation
Jump to search
verified via disassembly: scale is stored as a percentage
imported>Jlundin (Created page with "Category:Scripting Category:Papyrus '''Member of:''' ObjectReference Script Returns the current scale of this reference. == Syntax == <source lang="papyrus"> float ...") |
imported>DavidJCobb (verified via disassembly: scale is stored as a percentage) |
||
Line 20: | Line 20: | ||
Debug.Trace("The box has a scale of: " + box.GetScale()) | Debug.Trace("The box has a scale of: " + box.GetScale()) | ||
</source> | </source> | ||
== Notes == | |||
* 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. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |