Allow NPCs with a delayed spawn to be spawned in the player's current system
Problem Description
NPC nodes determine at instantiation time of the mission which system they should spawn in. The to spawn node on NPCs can delay the spawning of an NPC until later. There's currently no means of, within a single mission, spawning an NPC in a delayed manner in the player's current system, as we don't always know where the player will be in order to pre-place the NPCs there.
Related Issue Links
#12673 highlights the desire for a mechanic like this. #12311 a related mechanic. #1934 a related ask.
Desired Solution
Add a new flag to NPC to move ships to the player when they're spawned, or don't evaluate the location of an NPC until it is spawned (as the default location of an NPC that doesn't specify a location is in the player's system). As I type this out, I'm leaning toward the latter option, as this would also allow us to easily do something like spawn an NPC within some distance from the player's current system without that also having to be a new syntax.
Alternative Approaches
Idk.
Additional Context
No response
Source: endless-sky/endless-sky