SetScaleEX

A command for Oblivion Script Extender

Syntax:

(nothing) reference.SetScaleEX scale:float

Sets the scale of the calling reference. Unlike SetScale, the scale is not limited to a certain range.

NotesEdit

  • The reference should be disabled and then enabled after calling this function in order to update its scale and collision properties.
  • Enabling the reference must be done at least one frame later. Something like this:
if <some condition>
  MyRef.Disable
  MyRef.SetScaleEX <some value>
  let iFrameĀ := 2
endif

if iFrame
  let iFrame -= 1
  if iFrame == 0
    MyRef.enable
  endif
endif
  • Actors may change position when going through this process, so you may want to save their X, Y and Z positions when disabling and set them back after enabling.
  • The new scale is saved in the savegame.

See AlsoEdit