<- PRPL reference <- Everything Else 2
Arguments | Result | Notation |
---|---|---|
x y radius sqaure | sid | [ int int float bool - int ] |
Find the nearest ship to the target coordinates and returns it's ship id on stack. If no ship is found in the range, -1 is pushed on the stack instead.
The center of the command module needs to be in range in order for the ship to register (you could even have a ship collide with the search cencer and still not be found if the command center is too far away, for example).
All 3 of player ship, friendly ships (the blue uncontrollable ones) and enemy ships count. Dopplers and friendly dopplers don't count.