Jump to content

Wave of npcs script


Recommended Posts

Have the NPC arranged where you want them to spawn, keep them initially disabled, and keep notes on their Reference IDs.

Then make a quest that runs the script every 2 minutes, and enables a set of those NPC each time if the player is in the correct Cell or WorldCell

Edited by UnvalidUserName
Link to comment
Share on other sites

It's easier to use an xmarker as an enable ref. Basically, create NPCs initially disabled as already said, but instead of disabling them all individually have an xmarker for each wave and for all of the NPCs in that wave, set their enable ref to be the xmarker for that wave. Have all of the xmarkers initially set to disabled then enable them with a script as was already suggested.

 

The advantage of this method is that your script is one line for each wave and you don't need to keep track of all of the NPC ref IDs. The only thing you need to keep track of is your xmarker IDs and you only have 4 of those (1 for each wave).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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