UnregisterForAnimationEvent - Form

Revision as of 09:03, 12 September 2012 by imported>JLundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ActiveMagicEffect Script, Alias Script, and Form Script

Unregisters this active magic effect/alias/form from the specified animation event on the specified reference.

SyntaxEdit

Function UnregisterForAnimationEvent(ObjectReference akSender, string asEventName) native

ParametersEdit

  • akSender: The ObjectReference the event was coming from.
  • asEventName: The event to no longer listen for.

Return ValueEdit

None

ExamplesEdit

; Stop listening for the "reset" animation event from the object we are attached to
UnregisterForAnimationEvent(self, "Reset")

NotesEdit

  • Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
  • This function doesn't work if called within an OnAnimationEvent unless there is a wait preceding it.

See AlsoEdit