Set enabled {0}
Enable or disable the ship.
Turn left (rudder)
Rudder turn left. Call every tick while key held.
Turn right (rudder)
Rudder turn right. Call every tick while key held.
Set sail level to {0}
Set sail level (0–3).
Raise sail (+1 level)
Increase sail level by 1, up to max 3.
Lower sail (-1 level)
Decrease sail level by 1, down to min 0.
Drop anchor
Drop anchor, rapidly decelerating the ship.
Raise anchor
Raise anchor, allowing normal sailing again.
Set heading to {0}°
Set direction in degrees.
Set wind direction to {0}°
Set direction the wind blows toward.
Set wind strength to {0}
Set wind strength multiplier.
Stop movement instantly
Instantly zero speed.
Fire {0} broadside at ({1}, {2}, {3}), offset ({4}, {5}, {6}), delay {7}–{8}s
Fire all cannons on the given side at a target point, with muzzle offset and randomized per-cannon delay. Triggers 'On cannon fire' once per cannon that has a valid firing solution, and creates cannonball objects automatically.
Fire {0} broadside at current mouse aim, delay {1}–{2}s
Fire all cannons on the given side at the current mouse-aimed target (set via Draw trajectory preview), with a randomized per-cannon delay.
Preview aim {0} at ({1}, {2}, {3})
Compute (without firing) the trajectory from a reference cannon on the given side to a target point, for drawing an aiming arc.
Draw trajectory preview {0}, mouse ({1}, {2}), limits yaw±{3}° up{4}° down{5}°, offset ({6}, {7}, {8})
Adjust the mouse-aimed direction (clamped to the given traverse limits) and draw the ballistic arc from the given side's muzzle, offset by the given amount. Call every frame with Mouse.MovementX/Y.
Clear trajectory preview
Destroy all trajectory preview segments.