Skip to main content

Execute_SetBoatAnchor

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

ParameterDescription
BaseObjectThe ship entity whose anchor state will be changed (Self or Target).
F1Anchor state value (0 = AnchorUp, non-zero = AnchorDown).

Examples

DescriptionBaseObjectCommandF1
Lower the anchor of the target ship.TargetSetBoatAnchor1
Raise the anchor of the target ship.TargetSetBoatAnchor0
Lower the anchor of the self ship.SelfSetBoatAnchor1
Raise the anchor of the self ship.SelfSetBoatAnchor0