Jump to content

ideas for a snazy effect after a spell ends , timing being OnMagicEffectEnds


Recommended Posts

Hi,

Using SPID I gave al npcs an ability to highlight them in red if enemy and hostile to player.  Both a keyboard toggle and a magic spell is provided to player.  Either way, when the magic effect ends event is called i would love to provide a visual cue that the spell ended.  The ability uses a script so scripting something would probably be the easiest.

Any suggestions on what to use would be most welcome.  Hope you can follow my complex code, there are debug hints:

 

Scriptname FoF extends ActiveMagicEffect  

EffectShader Property FOFmofxshader  Auto  

ObjectReference Property Dude Auto


Event OnEffectStart(Actor akTarget, Actor akCaster)
 ; Debug.Notification("STARTS")
   
FOFmofxshader.play(akCaster)	



endEvent



Event OnEffectFinish(Actor akTarget, Actor akCaster)


;Debug.Notification("ends")

FOFmofxshader.stop(akcaster)	  
	  

	  

  
endEvent

 

 

Link to comment
Share on other sites

Just play a new FxShader in the OnEffectFinish event, one that isn't looped, or if it is looped, 

 

fxEndShader.play(akcaster) 

Utility.wait(1) 

fxEndShader.stop(akcaster)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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