kxdace Posted November 8, 2018 Posted November 8, 2018 I am unable to get my actor to stop playing a dance animation. I use a dialog to make then dance "Dance for me" that executes the following code: Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor akSpeaker.PlayIdle(idleDanceA) akspeaker.setav("WaitingForPlayer", 1) akSpeaker.addToFaction(FactionDance) EndFunction Idle Property idleDanceA Auto Faction Property FactionDance Auto Then I have another dialog option that is supposed to make them stop but it isnt working. Function Fragment_0(ObjectReference akSpeakerRef) Actor akSpeaker = akSpeakerRef as Actor akSpeaker.PlayIdle(idleStop) debug.notification ("Timer started") utility .wait(5) akSpeaker.PlayIdle(idleStop) akspeaker.setav("WaitingForPlayer", 0) akSpeaker.removeFromFaction(FactionDance) EndFunction Idle Property idleStop Auto Faction Property FactionDance Auto The reason I put idleStop in twice is because the CK website says if you play two of the same animations it should stop. Well it doesnt. I've also tried replacing the idleStop animations with the lay down or arms crossed idles but they dont stop the dancing. The only way I can get the actor to stop is by adding code to disable and enable them. There has got to be a better way. Please help.
Tyrant99 Posted November 8, 2018 Posted November 8, 2018 Try replacing akSpeaker.PlayIdle(idleStop) with Debug.SendAnimationEvent(AkSpeaker, "IdleForceDefaultState")
Recommended Posts
Archived
This topic is now archived and is closed to further replies.