Jump to content

How to break/stop ZaZ idle animation?


redneck2x

Recommended Posts

Posted

I am trying to create my first mod - "Mistress Crop".

It is an enchanted crop that triggers idle animation.

I am using ZaZ resources for that propose.

http://skyrim.nexusmods.com/mods/24023

 

Now the problem is that after ZaZ idle animation is applied to an actor, the actor gets stuck in the idle.

See following code I am using to apply the effect:

 

Scriptname MistressCorpEffect extends activemagiceffect

Idle property standIdle auto ;"ZazRa001"
Idle Property saluteIdle  Auto ;"IdleSalute"
Idle Property stopIdle  Auto ;"IdleStop_Loose" 

Event OnEffectStart(Actor akTarget, Actor akCaster)

Debug.Notification("Started Mistress Crop Effect")

akTarget.StopCombat()
akTarget.SetRestrained()
akTarget.SetDontMove()
akTarget.PlayIdle(standIdle)

EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)

Utility.Wait(15)
akTarget.SetDontMove(False)
akTarget.SetRestrained(False)
akTarget.PlayIdle(stopIdle)
akTarget.PlayIdle(saluteIdle)
Debug.Notification("Ended Mistress Crop Effect")

EndEvent

 

The most common way to stop an animation is to apply "IdleStop_Loose" , but it is not working on ZaZ idle animation.

Using "recycleactor" command is unacceptable, since it totally resets the actor.

 

Any ideas how to break/stop ZaZ idle animation?

Posted

maybe you could try something similar to minilovers?

try a fell off animation, im not sure about the name but it has something to do with trip/stumble after animation. that could reset the actor. im not sure but you could give it a try.

Posted

maybe you could try something similar to minilovers?

try a fell off animation' date=' im not sure about the name but it has something to do with trip/stumble after animation. that could reset the actor. im not sure but you could give it a try.

[/quote']

 

Probably should just add a "stop" spell to the mod.

Posted

Tnx, but I was looking for more technical answer.

After digging at FNIS code I found that actor animations can be stopped with following code:

 

Debug.SendAnimationEvent(akTarget, "IdleForceDefaultState")

 

Hope this helps to other modders, since Zaz animations are really tough to break.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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