Difference between revisions of "SetActorRefraction"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Gamall
m
imported>Haama
(CS 1.0 stuff)
Line 16: Line 16:
     player.sar 0
     player.sar 0
  endif
  endif


[[Category: Functions]]
[[Category: Functions]]
[[Category: Functions (CS 1.0)]]
[[Category: Magic Functions]]
[[Category: Magic Functions]]
[[Category: Magic Functions (CS 1.0)]]
[[Category:Actor Functions]]
[[Category:Actor Functions]]
[[Category:Actor Functions (CS 1.0)]]

Revision as of 14:55, 8 August 2007

Syntax:

SetActorRefraction [0.0 - 10.0]
sar [0.0 - 10.0]

Example:

SetActorRefraction 3 ; semi-transparent
SAR 0 ; opaque


Sets the actor's refraction value (how transparent they are). Note that this setting will be lost when the actor goes out of high process.


There seems to be a small glich about this function : if you load any other savegame while you are semi-transparent, you will still be semi-transparent. It's tricky if you use that in a spell effect, because you can't prevent the player from fast-loading their quicksave while the effect is active. As a workaround, one can use this kind of code in a quest script :

if player.IsSpellTarget thespell == 0
   player.sar 0
endif