Jump to content

[LE] Play idle with spell ?


Nitroxone

Recommended Posts

Hello Nexus community,

 

I am very new to Papyrus, and I would like to create a very simple spell that plays the short idle "IdleSilentBow" (the idle of the Greybeards when you talk to them, when they say "Dovahkiin" and the ground shakes) on the player (so a Fire and Forget Spell on Self).

 

I've searched everywhere on the Internet but I can't seem to find any solution to this ..

 

Anyone help ?

 

Thanks in advance :smile: !

 

(I'm french so my english may be really bad ^^')

Edited by Nitroxone
Link to comment
Share on other sites

Try this:

Scriptname AnimationScript extends ActiveMagicEffect  

Actor Property SpellSubject Auto


Event OnEffectStart(Actor akTarget, Actor akCaster)

  SpellSubject = akTarget
  RegisterForSingleUpdate(1.0)    ;we will run updates every second, this should be fast enough whilst not being too fast/expensive.

EndEvent

Event OnUpdate()

RegisterForSingleUpdate(1.0)

	Debug.SendAnimationEvent(SpellSubject,"IdleSilentBow")
	UnregisterForUpdate()    ;we don't want to send this multiple times.

EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)  ;when they die or spell duration expires.

	UnregisterForUpdate()

EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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