Omny Posted December 11, 2021 Posted December 11, 2021 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?
Radioactivelad Posted December 16, 2021 Posted December 16, 2021 Would it be possible to just simply dump every npc in to a Formlist and then just run a Formlistid.additem script?
Omny Posted December 16, 2021 Author Posted December 16, 2021 Maybe, but I actually found another, more elegant solution to my original problem, so that's all taken care of.
Recommended Posts