Background for Skyrim SE
Member of the Debug script
voidfunctionSendAnimationEvent(ObjectReferencearRef, stringasEventName)NativeGlobal

Description

Wiki Description

Sends an animation event to a reference directly.

Documentation Comment

Forcibly sends an animation event to a reference's behavior graph
used to bypass actor limitation on the ObjectReference version


Caveats

CK Wiki - 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.
  • SendAnimationEvent uses "Anim Events" under the Idle Manager, not the IDs. For example, to make an actor play the animation of attacking left, you must use "AttackStartLeftHand", not "LeftHandAttack" (its ID).
  • Animation Event's will actually cause the actor to perform the action associated with it. For example, sending the animation event "AttackStart" will cause the reference to perform an attack. Anything in front of it will get hurt. This example is true for all animation event's. For example, sending the "DeathAnim" will actually kill the actor.

Parameters

ObjectReferencearRef

CK Wiki Description

The reference to send the event to.

stringasEventName

CK Wiki Description

The event to send.


Examples

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

Auto-Generated Example

ObjectReference myObjectReference__arRef
string myString__asEventName

Debug.SendAnimationEvent(myObjectReference__arRef, myString__asEventName)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.