In the Creation Kit, there is a count column for every resource. I can right click a form, select "Use Info", and a window pops up listing the cells where the references are located in the vanilla game. I can click on anything in the list, and that specific reference will load in the render window. So... the game (at least the Creation Kit) knows how many instances / references are tied to each form and where they are.
In fact, I've seen this in FO4Edit too, as "Build Reference Info".
My question is... can I replicate that result in Papyrus?
I am working on a teleport mod that finds statics or furniture, moves a marker to there with offsets, moves marker to navmesh, then moves player to that marker.
So far, the categories have been a little tedious to create, but not overwhelming. There are 20 Red Rockets (including filling station remnants and gas prices signs), and there are 13 power lifts on overpasses or tall buildings.
Unfortunately, there are 60 bus stop shelter benches and 43 Pulowski preservation shelters. That's a lot of refs to click, load in the render window, and force to a specific ref alias in each refquest. I'm probably going to select a handful and ignore the rest.
But what if a function automagically listed the 60 refs? My existing code could import them and the mod would be done within a week.
I've seen requests for Find All References (not just of type or within distance) and I guess that's what I'm looking for too. Only it would be both loaded and unloaded refs.
Does Papyrus have an obscure function that mimics CK's Use Info feature?
If not, guess I will keep selecting refs by hand in the render window, but 80% of available options are going to be ignored due to time/work constraints.
Here's a video of my WIP: