redneck2x Posted December 6, 2012 Posted December 6, 2012 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?
Queen Bee Posted December 6, 2012 Posted December 6, 2012 I think if you melee hit them they'll go back to normal. Of course, then they might attack you...
WaxenFigure Posted December 8, 2012 Posted December 8, 2012 I think if you melee hit them they'll go back to normal. Of course' date=' then they might attack you... [/quote'] Cast a "Heal" spell on them.
polluxval Posted December 8, 2012 Posted December 8, 2012 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.
WaxenFigure Posted December 8, 2012 Posted December 8, 2012 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.
redneck2x Posted December 9, 2012 Author Posted December 9, 2012 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.