RPC wrote: I'm working on making retaliationfleets follow the player through the gate, but I'm wondering whether there are other options besides (shpOrder spaceObject 'follow).
Code: Select all
<Events>
<OnPlayerLeftSystem>
'follow
</OnPlayerLeftSystem>
</Events>
Correct. That is not doable. You would need to do a bit of complicated hand holding, that basically breaks down like this:RPC wrote: What I need is the ability to respawn a station in a system while the player isn't in the system. Is that doable?
1) Calculate the time required to respawn the station (do this for every station being respawned)
2) When the player leaves the system, store the time (you can do this in the OnPlayerLeftSystem event)
3) When the player re-enters the system, compare the current time to the time the player left. If the difference is greater than the projected time to complete, then respawn the stations immediately. If it is not, then move the schedule ahead by the difference. (you can use the OnPlayerEnteredSystem event to check for player entry).
These events should go on the freighters you send out to do the respawning. They can be applied via event handlers.
Hope that helps.