Skip to main content

Winch

A special device used to control the length of constraints attached to it. When attaching a constraint to the Winch, click the Winch first. When triggered with polysilicon, it will increase (Activate) or decrease (Deactivate).

Any length adjustments to the constraint will be tweened over a duration of 1 second. If an adjustment is made via a polysilicon trigger during a tween, the tween is cancelled and another tween starts toward the updated target length.

Adjustments made via polysilicon triggers have no debounce/cooldown. It is a craftable and spawnable flammable solid.

Here is a list of possible sizes that reach the maximum malleability (24) that have integer components: 1x1x24, 1x2x12, 1x3x8, 1x4x6, 2x2x6, 2x3x4

At its default size (4x2x2) it has a durability of 1, at its maximum size it has a durability of 2.

By default, its colour is #5b5d69.

It requires 2 Gear and 3 Iron to be crafted.

Methods


AdjustLength(adjustment)

Changes the constraint's length by adjustment. This method has a 1 second debounce window. Calls made during the window will not affect the winch.

The adjustment parameter is a number.


SetLength(length)

Sets the constraint's length to length. This method has a 1 second debounce window. Calls made during the window will not affect the winch.

The length parameter is a number.

Configurables


DeltaLength

The length change in studs when triggered by Polysilicon. It is a number. It ranges between 0 and 100.


MaxLength

The maximum length in studs of the rope. It is a number. It ranges between 0 and 100.


MinLength

The minimum length in studs of the rope. It is a number. It ranges between 0 and 100.