[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, otherwise if you use a Variable it will be the PID as an integer.
Every time a script runs, it is given a unique identifier called 'pid'.
The term pid traces its routes to Unix systems where this meant “process ID”.
The distinction between a process and a task in X3 - TC is a thin one.
A task ID is a short form to reference a process that is attached to a given object to perform a given set of functions.
A process ID is the internal reference number given each time a new instance of a script is instantiated.
Different ships will have scripts that run under identical task ID numbers.
A process ID number for a running process will never be the same as the process ID for any other currently running process.
Example:
$PID = get PID
$PID will be an integer representing the scripts current PID.
Command Location:
- »» General Commands
<RetVar/IF> = get PID