Jump to content

Make NPC Play Animation Help


Maduck89

Recommended Posts

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

So far i got this... Compiler says their is an error.

Scriptname DanceButtonScript extends ObjectReference

ActorBase property DancerRef1 auto

Event OnActivate(ObjectReference akActionRef)
Debug.SendAnimationEvent(DancerRef1, "kateanima00")
EndEvent

Link to comment
Share on other sites



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

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 by madutka
Link to comment
Share on other sites

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_Ref

Sound.SetInstanceVolume(instanceID, 0.5) ; play at half volume

Link to comment
Share on other sites

  • Recently Browsing   0 members

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