Description
Sets the anchor state of a ship. If F1 is 0, the anchor is raised (AnchorUp);
otherwise the anchor is lowered (AnchorDown). The state change is also broadcast
to clients via packet.
Parameters
| Parameter | Description |
|---|
| BaseObject | The ship entity whose anchor state will be changed (Self or Target). |
| F1 | Anchor state value (0 = AnchorUp, non-zero = AnchorDown). |
Examples
| Description | BaseObject | Command | F1 |
|---|
| Lower the anchor of the target ship. | Target | SetBoatAnchor | 1 |
| Raise the anchor of the target ship. | Target | SetBoatAnchor | 0 |
| Lower the anchor of the self ship. | Self | SetBoatAnchor | 1 |
| Raise the anchor of the self ship. | Self | SetBoatAnchor | 0 |