The if_docked mission scripting condition tests if a player ship is docked with a named station.
Attribute
|
Valid Values
|
Optional?
|
Description
|
name
|
text
|
Mandatory
|
The name of the station.
|
player_name |
text |
You only need to use one, either name, player_slot, OR use_gm_selection. |
The name of the player ship to test. If this attribute is absent, or if no ship exists with the indicated name, the ship in player slot 0 is tested. This attribute was added in Artemis v2.4. |
player_slot |
0-7 (corresponds to the 8 player ships allowed in the game) |
This attribute was added in Artemis v2.6.3. |
use_gm_selection |
anything |
Use this attribute to use the game master's selected player ship. (This will fail if the selected object isn't a player ship.) This attribute was added in Artemis v2.6.3. |
not |
anything |
|
If present, inverts the logic of this command, to test if the player ship is NOT currently docked. This attribute was added in Artemis v2.6.3. |
To force testing a specific player ship that might or might not exist, this command must be paired with if_exists.
For example:
<if_exists name="Intrepid" />
<if_docked player_name="Intrepid" name="DS1" />
Comments (0)
You don't have permission to comment on this page.