Table of Contents

Class SeatConfig

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Seat properties Open in GitHub

[DocumentAsJson]
public class SeatConfig
Inheritance
SeatConfig
Inherited Members
Extension Methods

Fields

APName

Attachment point name

[DocumentAsJson("Required", "", false)]
public string APName

Field Value

string

AngleMode

How the mounted entity should rotate relative to the mount

[DocumentAsJson("Optional", "FixateYaw", false)]
public EnumMountAngleMode AngleMode

Field Value

EnumMountAngleMode

Attributes

Miscallaneous attributes

[JsonProperty]
[JsonConverter(typeof(JsonAttributesConverter))]
[DocumentAsJson("Optional", "None", false)]
public JsonObject Attributes

Field Value

JsonObject

BodyYawLimit

Optional maximum yaw rotation (in radians) that a player can turn to look to left or right (relative to their body) while seated.
If null, no yaw limit is applied.

The limit is applied relative to the seat�s mount rotation

[DocumentAsJson("Optional", "None", false)]
public float? BodyYawLimit

Field Value

float?

Controllable

Can player in this seat control the mountable entity?

[DocumentAsJson("Optional", "False", false)]
public bool Controllable

Field Value

bool

EyeHeight

Overrides player's eye height while seated

[DocumentAsJson("Optional", "1.5", false)]
public float EyeHeight

Field Value

float

EyeOffsetX

Offset player's eye position while seated

[DocumentAsJson("Optional", "0", false)]
public float EyeOffsetX

Field Value

float

MountOffset

Obsolete. Offset of the mount point. Setting this triggers use of slightly incorrect math for backwards compatibility.

[Obsolete("Setting this triggers use of slightly incorrect math for backwards compatibility")]
[DocumentAsJson("Obsolete", "None", false)]
public Vec3f MountOffset

Field Value

Vec3f

MountRotation

public Vec3f MountRotation

Field Value

Vec3f

RiderOffset

Offset of the mount point

[DocumentAsJson("Optional", "0, 0, 0,", false)]
public Vec3f RiderOffset

Field Value

Vec3f

SeatId

public string SeatId

Field Value

string

SelectionBox

The name of attachment point of shape element that should be used as selection box for interactions with this seat

[DocumentAsJson("Required", "", false)]
public string SelectionBox

Field Value

string

Properties

Animation

Player's animation code that is used while seated

[DocumentAsJson("Recommended", "None", false)]
public string Animation { get; set; }

Property Value

string