digdug wrote:Why do stations respawn at the sun?
I suspect that you are trying to do this:
(setq pos (sysVectorPolarOffset gSource (random 0 360) (random 800 1200)))
when gSource is already a destroyed station, so it causes the respawning to happen at the center of the system (on the sun)
" What he said " .
It looks to me like the very order I used on the patrols to Orbit the star......except you do not have a target. No target to the order = comes out at the star like your escape ships do if the ship is destroyed and they no longer have that focus point to spawn from.
( i tested this by giving a Ranx GunShip "escape pods" of Ronin : they came out at or near the star because the GunShips basically turn to dust ; where as the Phobos released Ronin at or near their Destiny point)
Are your stations that spawn ( I never looked at which ones do or not ) being taken off the map ? if so the code is loosing it's focus.
My original ideal of this was that the object stays put : escape pods jet out and build the new one. ( deploy the CSA );
I understand you are trying to lock the location but MAYBE: instead of that, drop a bogey...a marker on Destroy for the spawn to lock onto regardless of what happens to the station itself?
(TESTED: Shenlong was created and ordered to Hold : so had the station itself gone to particles Shenlong would have been the Bogey to target ( and not one that would die easy before the new spawn is made which is why I chose it ))
For actual game use, Naturally Shenlong would not be usable, but maybe a Hornet, Log Buoy(?) --Now there is an adventure!!!!!!
Destroyed station deploys Log Buoy with data: message, notes to friends......oh I got to stop I got my own .xml ideas to fight with tonight.
Flying Irresponsibly In Eridani......
I don't like to kill pirates in cold blood ..I do it.. but I don't like it..