Jump to content

Help needed calling playidle on an NPC from a script


blackrat99

Recommended Posts

I'm trying to get an NPC to use one of a number of idles from an object script, but I just can't get it to work.

 

I set a variable in a quest, test the variable in the script and try to get the NPC to use the corresponding idle. However, sometimes they do and sometimes they don't. They might perform the idle, but if I reload and try again, they might not.

 

The variable is being set correctly and it seems totally random whether the idle takes or not.

 

I've tested all the idles using the console and they all work.

 

I've looked round the net for solutions. Setting up an actor effect doesn't work any better than using playidle on it's own. Making the NPC restrained or unconcious doesn't help.

 

Using a package does seem to work but I would rather not use this method because it seems to cause problems with the NPC's default packages but I could just be missing something.

 

If anyone can give me some insight into how to get it to work I'd be most grateful.

 

EDIT: I've fixed the package issue, but I'd still like to know why it doesn't work properly using the other methods.

Edited by blackrat99
Link to comment
Share on other sites

  • Recently Browsing   0 members

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