Jump to content

Need help with a script that applies a visual effect to the player


Recommended Posts

I'm working on some teleportation spells using this script:



Scriptname TeleportSpellScript extends activemagiceffect

ObjectReference Property Loc01 Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
Utility.Wait(3.0)
Game.FadeOutGame(False, True, 2.0, 1.0)
Game.GetPlayer().MoveTo(Loc01)
Game.EnableFastTravel()
Game.FastTravel(Loc01)
EndEvent

The script works perfectly but I'm trying to add a little bit more flair to it. I'm using the "TimeFadeOut01FXS" effect for the Hit Shader and it's perfect for the spell, but I'd also like to use the "TimeFadeIn01FXS" effect on my character after the event has happened. What would be the best way to accomplish this? Would I use the "Event OnEffectFinish" function? Also, is it possible to have both effects apply to my followers as well?


Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...