[skip|else] if [not]|while [not]| = The possible 'conditional' statements that can be used with this command.
<RetVar/IF> = variable where the requested information is put
<RefObj> = The object you want to check
This function returns the class of an object. It works for all objects including but not limited to ships, sectors, asteroids, stations, flying wares.
If the <RefObj> doesn't exists, the result in <RetVar/IF> will be null
Example:
$my.class = [PLAYERSHIP] -> get object class
write to player logbook $my.class
This example will write the class of the ship piloted by the player in the logbook.
Related Commands:
<RetVar/IF> = <RefObj> -> if of class <Var/Class>
Additional Information:
List of Ingame Object Classes.
Command Location:
- »» General Object Commands
<RetVar/IF><RefObj> get object class