Maduck89 Posted August 27, 2020 Share Posted August 27, 2020 Hi everyone. Im working on a mod and im trying to make it so several npcs dance (maybe a sequence of several animations) continuously on a switch activation. I want the dancing toggled on and off. Im kinda lost. im assuming a script is involved, but im not sure how to write it. Can i somehow use FNIS to make it work as well? Thanks. Link to comment Share on other sites More sharing options...
Maduck89 Posted August 27, 2020 Author Share Posted August 27, 2020 So far i got this... Compiler says their is an error.Scriptname DanceButtonScript extends ObjectReference ActorBase property DancerRef1 autoEvent OnActivate(ObjectReference akActionRef)Debug.SendAnimationEvent(DancerRef1, "kateanima00")EndEvent Link to comment Share on other sites More sharing options...
Thandal Posted August 29, 2020 Share Posted August 29, 2020 Which game? Link to comment Share on other sites More sharing options...
steve40 Posted August 30, 2020 Share Posted August 30, 2020 Well, you can't send animation events like that, that's not how it works.You want to be learning how to use PlayIdle. Link to comment Share on other sites More sharing options...
Maduck89 Posted August 30, 2020 Author Share Posted August 30, 2020 For SSE I got it working. it plays a single animation. Scriptname aaDancerScript extends ObjectReference import game import debug Actor property DancerRef1 auto Event OnActivate(ObjectReference akActionRef) Debug.SendAnimationEvent(DancerRef1, "DABRD") EndEvent How would i get it to play animations in sequence? (one after the first is finished) Link to comment Share on other sites More sharing options...
Oblivionaddicted Posted August 30, 2020 Share Posted August 30, 2020 Post on Skyrim's forums. Link to comment Share on other sites More sharing options...
Maduck89 Posted September 2, 2020 Author Share Posted September 2, 2020 (edited) Thanks for the reply. got the script working. only problem is i have a sound fx that supposed to play from the npc, however it seems to play from me. no matter where i am i hear it at full volume? any suggestions? Edited September 2, 2020 by madutka Link to comment Share on other sites More sharing options...
Maduck89 Posted September 2, 2020 Author Share Posted September 2, 2020 first time scripting is quite a challenge. cant remember squat from my hs computer science class. lol Link to comment Share on other sites More sharing options...
steve40 Posted September 2, 2020 Share Posted September 2, 2020 Thanks for the reply. got the script working. only problem is i have a sound fx that supposed to play from the npc, however it seems to play from me. no matter where i am i hear it at full volume? any suggestions? int instanceID = mySFX.play(myNPC_Ref) ; play mySFX sound from myNPC_RefSound.SetInstanceVolume(instanceID, 0.5) ; play at half volume Link to comment Share on other sites More sharing options...
Recommended Posts