How on earth do you do animations?

Post » Mon Nov 03, 2014 11:49 pm

Hey guys :)

So.. I'm getting into some new areas of modding recently. Basically, I wanna try adding some animations to one of my mods. But I can't really figure out how to do it lol. What I want to do is, there's this new activator that I've created, and when you activate/click on it, I want the character to perform a short animation. I figured it probably needs a script on the activator that has an 'OnActivated' event, but that's really as far as I've got.. Well, I have tried two different scripts already actually. No idea if they're even right, but they did compile.. But in game, nothing happened at all when I clicked the activator -_- Here are the two scripts so you can see what I've done:

Scriptname testanimscript extends ObjectReference  Event OnActivate(ObjectReference akActionRef)                if akActionRef == Game.GetPlayer()                                RegisterForAnimationEvent(Game.GetPlayer(), "IdleDrinkFromFountain")                                Utility.Wait(5)                                UnregisterForAnimationEvent(Game.GetPlayer(), "IdleDrinkFromFountain")                endifEndEvent Event OnAnimationEvent(ObjectReference akSource, string asEventName)                if (asEventName == "IdleDrinkFromFountain" && akSource == Game.GetPlayer())                                UnregisterForAnimationEvent(Game.GetPlayer(), "IdleDrinkFromFountain")                endifEndEvent

Scriptname testanimscript2 extends ObjectReference  Event OnActivate(ObjectReference akActionRef)                if akActionRef == Game.GetPlayer()                Player.PlayIdle(DrinkFromFountain)                endifEndEvent Actor Property Player  Auto Idle Property DrinkFromFountain  Auto  

So yeah, If anyone could help me with this it would mean a lot to me, thanks! :)

User avatar
{Richies Mommy}
 
Posts: 3398
Joined: Wed Jun 21, 2006 2:40 pm

Return to V - Skyrim