This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "SetScaleEX"

Jump to navigation Jump to search
427 bytes added ,  11:30, 1 February 2015
Added notes and a code example
imported>Haama
(Created)
 
imported>QQuix
(Added notes and a code example)
 
Line 7: Line 7:
==Notes==
==Notes==
*The reference should be disabled and then enabled after calling this function in order to update its scale and collision properties.
*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.
*The new scale is saved in the savegame.


Anonymous user

Navigation menu