[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, the command will return 1 on success and 0 on failure.
<RefObj> = The object, which you want to check, if it can launch marines.
This command will check, if the <RefObj> can launch marines without using boarding pods.
Example:
$ship = get player tracking aim
$launch = $ship -> can launch marines
if $launch == 1
|write to player logbook: printf: fmt='%s can launch marines', $ship, null, null, null, null
else
|write to player logbook: printf: fmt='%s cannot launch marines', $ship, null, null, null, null
end
return null
This will get the player's currently selected target and check, if it can launch marines (without boarding pods). In case of succes or failure it will write an appropriate message into the player's logbook.
Note:
In an unmodified game only ships of the classes TP and M6 are able to launch marines (without boarding pods).
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> can launch marines
- »» Passengers