MuhammadJA Posted July 14, 2017 Posted July 14, 2017 Is it possible to make a mod that spawns 5.56 ammo for example on every enemy you encounter even if they don't use weapons?
TheDungeonDweller Posted July 14, 2017 Posted July 14, 2017 (edited) Yep. Quick and dirty example. Ammo property SomeAmmo auto Keyword property ActorTypeNPC auto Function AddAmmoToActors() ObjectReference[] kActors = Game.FindAllReferencesWithKeyword(ActorTypeNPC, 4096.0) ; The length of a full cell. Int index = kActors.Length While index index -= 1 kActors[index].additem(SomeAmmo) EndWhile EndFunction If you want specific enemies, like rad roaches, just change the keyword. ActorTypeNPC will grab ANY NPC, even if not an enemy. There's a way to just check for factions but it's late here and I don't have the time to think the whole process through. Just confirming that it can be done. Edited July 14, 2017 by TheDungeonDweller
MuhammadJA Posted July 14, 2017 Author Posted July 14, 2017 Thanks for your reply! Now if only someone can do it.
Recommended Posts