Jump to content

How to add something to every NPCs inventory?


Omny

Recommended Posts

I'm trying to write a script that adds an item to every single NPC's inventory (that is, all the humans; none of the creatures). Can anyone offer any scripting advice?

 

right now i've got something like this:

ref rActor
ref rTarget

Begin GameMode

If GetGameLoaded

Set rTarget to rActor.GetIsCreature == 0    

rTarget.additem AmmoFatMans 1

endif

 

 

It saves alright in the GECK, but doesn't do anything in-game. What am I missing?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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