[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Use a variable, if the command should return information. If a variable is used, it will contain the ejected passenger, which is now an Astronaut.
<RefObj> = The passenger you want to eject.
This command will eject the as <RefObj> selected passenger.
After ejecting, the passenger will be an astronaut. That's why most of the passenger commands won't work with him as <RefObj>. Astronauts have to be referenced as ships.
Example:
$passenger.arr = [PLAYERSHIP] -> get passenger array
$size.passenger.arr = size of array $passenger.arr
$passenger = $passenger.arr[0]
= $passenger -> eject passenger
return null
This gets all passengers onboard the [PLAYERSHIP] and ejects one of them.
Note:
After ejecting a passenger, he will fly as an astronaut to the next friendly station in the current sector. If there is no station he simply stands still in space.
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> eject passenger
- »» Passengers