Difference between revisions of "SetScale - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
 
imported>Chesko
(Added RedwoodElf's information to a Notes section.)
Line 22: Line 22:
StatueProperty.SetScale(2.0)
StatueProperty.SetScale(2.0)
</source>
</source>
== Notes ==
* Using SetScale() does not update an object reference's collision information. Collision will continue to occur with the reference as if it were its original size.
* Calling this function repeatedly over a short span of time may cause a crash to desktop.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
*[[GetScale - ObjectReference]]
*[[GetScale - ObjectReference]]

Revision as of 20:58, 23 July 2012

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() does not update an object reference's collision information. Collision will continue to occur with the reference as if it were its original size.
  • Calling this function repeatedly over a short span of time may cause a crash to desktop.

See Also