Addon ID

  • pirateship_3d

Info

  • License MIT License
  • Copyright icon Copyright Jonasz Osmenda. All rights reserved.

Statistics

  • Download count3 total downloads
  • Latest download count 3 downloads of latest version
  • Average download count1 downloads per day average

Owners

A list of all Actions, Conditions and Expressions supported in this addon.

General

  • Actions

    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.

  • Conditions

    Is anchored

    True when anchor is dropped.

    Is in irons

    True when heading is too close to directly upwind to sail.

    Is moving

    True when speed is above a small threshold.

    On cannon fire

    Triggered once per cannon that fires during a broadside. Use Cannon* expressions to read muzzle position and velocity.

    On cannonball impact

    Triggered when a fired cannonball reaches Water Level Z and is destroyed. Use Impact* expressions to read the impact position.

    {0} target in range at ({1}, {2}, {3})

    True if the reference cannon on the given side can reach the target point.

  • Expressions

    Speed

    Current speed in px/s.

    Heading

    Current heading in degrees (0–360).

    SailLevel

    Current sail level (0–3).

    WindEfficiency

    Current wind efficiency factor (0–1).

    WindAngleRelative

    Signed angle between heading and wind direction (-180–180).

    CannonCount

    Number of cannons on the given side ('front','back','left','right').

    CannonIndex

    Index (0-based) of the cannon currently firing. Valid inside 'On cannon fire'.

    CannonMuzzleX

    World X of the firing cannon's muzzle. Valid inside 'On cannon fire'.

    CannonMuzzleY

    World Y of the firing cannon's muzzle. Valid inside 'On cannon fire'.

    CannonMuzzleZ

    World Z of the firing cannon's muzzle. Valid inside 'On cannon fire'.

    CannonVelX

    Initial X velocity of the fired cannonball. Valid inside 'On cannon fire'.

    CannonVelY

    Initial Y velocity of the fired cannonball. Valid inside 'On cannon fire'.

    CannonVelZ

    Initial Z velocity of the fired cannonball. Valid inside 'On cannon fire'.

    PreviewTrajectoryX

    X position along the last previewed trajectory at time t (seconds).

    PreviewTrajectoryY

    Y position along the last previewed trajectory at time t (seconds).

    PreviewTrajectoryZ

    Z position along the last previewed trajectory at time t (seconds).

    PreviewFlightTime

    Total flight time (seconds) of the last previewed trajectory.

    PreviewValid

    1 if the last PreviewAim found a valid firing solution, 0 otherwise.

    ImpactX

    World X of the last cannonball impact. Valid inside 'On cannonball impact'.

    ImpactY

    World Y of the last cannonball impact. Valid inside 'On cannonball impact'.

    ImpactZ

    World Z of the last cannonball impact. Valid inside 'On cannonball impact'.