[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = The variable, where the requested information is stored.
<RefObj> = The object you want to know its free space for marines.
This command will check, how much free space for marines the <RefObj> has. The return value won't contain the free units of cargo space, but the amout of marines the <RefObj> can store additionally to its current cargo.
Example:
$ship = get player tracking aim
$space = $ship -> free space for marines
write to player logbook: printf: fmt='%s has units free cargo space for %s marines', $ship, $space, null, null, null
return null
This will get the player's currently selected target and check, how much free space for marines it has.
Related Commands:
<RetVar/IF><RefObj> get maximum number of marines
<RetVar/IF><RefObj> get number of marines can board
Command Location:
- »» Trade Commands
- »» Passengers
<RetVar/IF><RefObj> free space for marines
- »» Passengers