How to: Kill All My Advanced Satellites through the Script Editor or a script???
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
How to: Kill All My Advanced Satellites through the Script Editor or a script???
As the title mentions, I need help in getting rid of all "Your Advanced Satellites" that are spread in ALL the sector, in duplicates... I mistakenly used the Cheat Package and ended up creating multiple satellites in all sectors, and now, it's cluttering my property list (a lot).
Are there any Script Editor to remove multiple player entities from the game in one simple line or loop?
Or, does anyone have a script to easily get rid of player property (in this case, my satellites)?
Thanks.
Are there any Script Editor to remove multiple player entities from the game in one simple line or loop?
Or, does anyone have a script to easily get rid of player property (in this case, my satellites)?
Thanks.
-
- Posts: 813
- Joined: Fri, 11. Nov 05, 23:18
Here is what I use:
Code: Select all
001 $a = get ship array: of race Player class/type=Advanced Satellite
002 $b = size of array $a
003 while $b
004 @ |= wait 10 ms
005 |dec $b =
006 |$c = $a[$b]
007 |skip if not $c -> exists
008 ||$c -> destruct: show no explosion=[TRUE]
009 end
010 return null
-
- Posts: 813
- Joined: Fri, 11. Nov 05, 23:18
Yes, make a new script and put those commands in it. When done and you have saved your script find it in the list, select it and press 'r' to run it. Choose null for the input if you just want it to do it without knowing when it is done, otherwise select your ship and when the autopilot finishes all your sats are gone.
Can't... stop... laughing.Gorium wrote:.... WOW, that will do... no need to kill them all then... cheers.OOZ662 wrote:You can also go to the Options tab of the Property screen and flip "Show: Satellites" to "No."
Thank you for making my day.
Too much sensor information? Try Sensor Suite information Centre. It'll clear it right up.