Script to change activator animation idle?

Post » Sun Jun 17, 2012 9:40 pm

The new scripting stuff is confusing for me. Following the tutorials is very difficult for me because I learn by example rather then trying to apply a concept.

That being said, I need some help understanding what is going on so that I can achieve my desired result.


So, I have the activator MGMagicFirePillarSmall and it has 2 idle animation states: AnimIdle01 and AnimIdle02. I need 02 to play rather then 01.

Help?
User avatar
JUDY FIGHTS
 
Posts: 3420
Joined: Fri Jun 23, 2006 4:25 am

Post » Sun Jun 17, 2012 2:10 pm

In your script you would need something like this

Event OnActivate(ObjectReference ActivatorRef) <- or whatever trigger you use we are not using the Ref's returned in any event so it does not matter
If YourCondition
Self.PlaySubGraphAnimation ("AnimIdle02")
Endif
EndEvent
User avatar
Kirsty Wood
 
Posts: 3461
Joined: Tue Aug 15, 2006 10:41 am

Post » Mon Jun 18, 2012 2:45 am

I'm not sure how multiple idles work, but I'd try something like this: rely on SaidenStorm.

Event OnLoad()	PlayAnimation("AnimIdle02")EndEvent
User avatar
Emmanuel Morales
 
Posts: 3433
Joined: Sat Oct 06, 2007 2:03 pm

Post » Sun Jun 17, 2012 7:04 pm

I am still confused. Im just trying to get said activator to play the second idle animation at all times. There is no button enabeling them, no fancy things im trying to do with them. Just play the second idle animation.
User avatar
Suzie Dalziel
 
Posts: 3443
Joined: Thu Jun 15, 2006 8:19 pm


Return to V - Skyrim