VanyarElf Posted December 15, 2023 Share Posted December 15, 2023 Hey everyone, I'm having trouble finding a way to program a script for New Vegas GECK which makes every NPC who hasn't been designated ( I.E, Player and another NPC ) leave a room located inside an interior cell. Any idea how I would go about doing it? Link to comment Share on other sites More sharing options...
ebizoe Posted December 15, 2023 Share Posted December 15, 2023 It'll be easily done by using a ref-walking function. There are several ways to do ref-walking, but you probably should try GetFirstRef/GetNextRef first. Link to comment Share on other sites More sharing options...
VanyarElf Posted December 16, 2023 Author Share Posted December 16, 2023 (edited) 20 hours ago, ebizoe said: It'll be easily done by using a ref-walking function. There are several ways to do ref-walking, but you probably should try GetFirstRef/GetNextRef first. Oh, I've been kind of working with the vanilla GECK scripting so far, the best I managed to come up currently is using OnTriggerEnter and GetActionRef to basically expel by teleportation any NPC's walking into an area while a quest objective/stage is active, but something more natural would be great. Edited December 16, 2023 by VanyarElf Link to comment Share on other sites More sharing options...
Recommended Posts