Jump to content

Playing an idle animation once


lb10111

Recommended Posts

How can I make an idle animation play once on an NPC before setting them back to their normal idle animation? So far this is what I've come up with:

 

- Add the idle animation in the construction set with the condition that the target is an actor and has a specific item in their inventory

- Add a script to that item with an OnAdd block that removes the item from the NPCs inventory

- In game... Reverse pick-pocket item into NPCs inventory

 

This has the effect of playing the new idle animation repeatedly and indefinitely, or until I use the PickIdle console command on the NPC. Obviously I'm going about this the wrong way... So what is the right way to make the animation play once and only once? Is it possible to detect via script when the animation is finished?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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