Looking for script to destroy all satellites (whole network)
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Looking for script to destroy all satellites (whole network)
Any suggestions? cant find anything like that on forum
No doubt there is a more efficient way of doing it, but try this.
ftp://incarn.homeip.net/DestroyAllSatts.zip
Code: Select all
$ships = get ship array: of race {Player} class/type=null
$counter = size of array $ships
while $counter > 0
dec $counter =
$ship = $ships[$counter]
$class=$ship-> get object class
if $class=={All Satellites}
$ship->destruct: show no explosion=[TRUE]
continue
end
if $class=={Advanced Satellite (object class)}
$ship->destruct: show no explosion=[TRUE]
continue
end
if $class=={Navigation Relay Satellite (object class)}
$ship->destruct: show no explosion=[TRUE]
continue
end
end
return null
- jack775544
- Posts: 1277
- Joined: Tue, 13. Dec 11, 08:27
Code: Select all
$sats = get ship array: of race {Player} class/type={All Satellites}
$i = size of array $sats
while $i
dec $i =
$sat = $sats[$i]
$sat->destruct: show no explosion=[TRUE]
end
return null
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.