Jump to content

Scripting - Spell Events


Myst42

Recommended Posts

Posted

I'm trying to make a concentration spell cast a FF one (to combine FX and use the concentration ritual animation instead of the FF ritual one)

 

Thing is, I need some events, and I'm not sure what can I use

Is there something like "OnEquip" but for spells instead of items?

 

At the moment my idea is
 

On(Event needed) --> Hopefully when spell is equipped
	Self.RegisterForAnimationEvent("BeginCastRight")
EndEvent

OnAnimationEvent(ObjectReference akSource, String EventName)
	If EventName == "BeginCastRight"
		Do Stuff
	EndIf
EndEvent

On(Second Event needed) ---> Hopefully when spell is unequipped
	Self.UnRegisterForAnimationEvent("BeginCastRight")
EndEvent

I tried "OnEffectStart" as usual with ActiveMagicEffect script, but it only registers the effect start when the spell hits someone, and I need it to happen always, even if it hits the ground or sky.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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