Jump to content

Give all NPC's a certain item


Mightandmarine

Recommended Posts

So in my free time, I am making a personal mod that makes all of New Vegas more like the world of Metro 2033. In the game, anyone on the surface is forced to wear a gas mask due to the radiation.

 

I was wondering, how would one give every single NPC on the surface (or the game world if that is not possible) who is a human a gas mask item that I have. Is it at all possible without tediously going from person to person and giving them the item?

Link to comment
Share on other sites

One way...

Write a quest script to keep track of the current cell - poll the actor's cell every 30 seconds or so.

When the cell changes check if not interior etc.

If it's a cell that gas masks should be worn...

* Do a refwalk of all actors in the cell.

* Check the inventory and add + equip the item if it's not there.

 

BTW, Bumping threads would normally get them locked.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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