How do I make a new custom Idle Animation?

Post » Tue Nov 20, 2012 10:15 am

I'm very new to modding in Skyrim, and for my first "Hello World" mod, I wanted to just make a simple spell that makes everyone around me dance. Right now, though, I only have everyone playing the flute, so I want to know how to add my own, custom Idle animation.

Also, if possible, how can I make my own character use this animation?

Here's the script I'm using:
Scriptname JazzHandsEffectScript extends ActiveMagicEffect  Faction Property CharmFaction Autobool Property bMakePlayerTeammate = false AutoIdle Property NPC_Dance autoIdle Property NPC_DanceEnd autoEvent OnEffectStart(Actor akTarget, Actor akCaster)	 akTarget.AddToFaction(CharmFaction)	 akCaster.StopCombat()	 akTarget.StopCombat()	 if bMakePlayerTeammate		  akTarget.SetPlayerTeammate(true, false)	 endif	 Utility.wait(1)	 akTarget.PlayIdle(NPC_Dance)EndEventEvent OnEffectFinish(Actor akTarget, Actor akCaster)	 akTarget.RemoveFromFaction(CharmFaction)	 akTarget.PlayIdle(NPC_DanceEnd)	 if bMakePlayerTeammate		  akTarget.SetPlayerTeammate(false, false)	 endifEndEvent
User avatar
Erika Ellsworth
 
Posts: 3333
Joined: Sat Jan 06, 2007 5:52 am

Return to V - Skyrim