Jump to content

"Disabling" NPCs during certain times of the day


fadingsignal

Recommended Posts

Are all of your traveler NPCs new [to reduce incompatibilities]? If so, as another option, then why not attach an Actor script to them?

 

If you have setup your NPCs to have travel packages at certain times of the day, create a package for the times that you want them disabled. Then check at package ending if the last travel package was the final package so you can disable them, and if it is your package for when they are disabled as the final one to re-enable them.

 

Below is an example of an actor script to do this [haven't tested to see if the packages are still evaluated when they are disabled, so you might have to do some GameTime checks]:

 

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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