Difference between revisions of "SetScale - ObjectReference"
Jump to navigation
Jump to search
imported>Chesko (Added RedwoodElf's information to a Notes section.) |
imported>DavidJCobb (→Notes: The CK can rescale collision, but scripts can't. Seems odd to me, but whatevs.) |
||
Line 24: | Line 24: | ||
== Notes == | == Notes == | ||
* Using SetScale() | * Using SetScale() doesn't change an object reference's collision information. Collision will continue to occur with the reference as if it were its original size. | ||
** This is in contrast to the Creation Kit's Scale option, which does rescale a preplaced reference's collision mesh. | |||
* Calling this function repeatedly over a short span of time may cause a crash to desktop. | * Calling this function repeatedly over a short span of time may cause a crash to desktop. | ||
Revision as of 06:04, 26 July 2015
Member of: ObjectReference Script
Sets the object's current scale.
Syntax
Function SetScale(float afScale) native
Parameters
- afScale: The overall scale of the object
Return Value
None.
Examples
; Set the statue to be twice as big as the original art size
StatueProperty.SetScale(2.0)
Notes
- Using SetScale() doesn't change an object reference's collision information. Collision will continue to occur with the reference as if it were its original size.
- This is in contrast to the Creation Kit's Scale option, which does rescale a preplaced reference's collision mesh.
- Calling this function repeatedly over a short span of time may cause a crash to desktop.