SetScale - ObjectReference

Revision as of 05:39, 28 May 2024 by TwilightSky (talk | contribs) (→‎Notes: Changed crash warning to indicate the version of Skyrim this was reported from.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Sets the object's current scale.

SyntaxEdit

Function SetScale(float afScale) native

ParametersEdit

  • afScale: The overall scale of the object

Return ValueEdit

None.

ExamplesEdit

; Set the statue to be twice as big as the original art size
StatueProperty.SetScale(2.0)

NotesEdit

  • Using SetScale() doesn't change an object reference's collision information. A known exception is for unloaded actors. 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 for the 32bit version of Skyrim(v1.9.32) aka "Oldrim".

See AlsoEdit