Table of Contents

Class EntityBehaviorAttachable

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

Allows to attach specific items to entity.
Requires EntityBehaviorSelectionBoxes
Uses the "attachable" code Open in GitHub

[DocumentAsJson]
[AddDocumentationProperty("interactPassthrough", "Use this on a collectible type. If True, skips the attach interaction for this item when it is attached and the attach key is not pressed, allowing the interaction to pass through to mount or other entity interactions", "System.Boolean", "Optional", "False", true)]
public class EntityBehaviorAttachable : EntityBehaviorContainer
Inheritance
EntityBehaviorAttachable
Derived
Inherited Members

Fields

wearableSlots (Required)

Attachable slots. Should be in the same order as selectionBoxes of EntityBehaviorSelectionBoxes

[DocumentAsJson("Required", "", false)]
internal WearableSlotConfig[] wearableSlots

Field Value

WearableSlotConfig[]

UseShiftAttach (Optional) (Default: false)

Whether to use shift instead of ctrl key to attach/detach items

[DocumentAsJson("Optional", "false", false)]
public bool UseShiftAttach

Field Value

bool

Properties

interactPassthrough (Optional) (Default: False)

Use this on a collectible type. If True, skips the attach interaction for this item when it is attached and the attach key is not pressed, allowing the interaction to pass through to mount or other entity interactions

Property Value

bool