SendAnimationEvent - Debug

From the CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Debug Script

Sends an animation event to a reference directly.

Syntax

Function SendAnimationEvent(ObjectReference arRef, string asEventName) native global

Parameters

  • arRef: The reference to send the event to.
  • asEventName: The event to send.

Return Value

None

Examples

; Sends the dance event to the bard
Debug.SendAnimationEvent(BardRef, "Dance")

Notes

This bypasses the check on ObjectReference that prevents sending events to actors. If you use it to send an event to actors, you will most likely mess up the actor permanently as the internal actor data may no longer match their animation state.

See Also