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
AngleMode
How the mounted entity should rotate relative to the mount
[DocumentAsJson("Optional", "FixateYaw", false)]
public EnumMountAngleMode AngleMode
Field Value
Attributes
Miscallaneous attributes
[JsonProperty]
[JsonConverter(typeof(JsonAttributesConverter))]
[DocumentAsJson("Optional", "None", false)]
public JsonObject Attributes
Field Value
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
Controllable
Can player in this seat control the mountable entity?
[DocumentAsJson("Optional", "False", false)]
public bool Controllable
Field Value
EyeHeight
Overrides player's eye height while seated
[DocumentAsJson("Optional", "1.5", false)]
public float EyeHeight
Field Value
EyeOffsetX
Offset player's eye position while seated
[DocumentAsJson("Optional", "0", false)]
public float EyeOffsetX
Field Value
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
MountRotation
public Vec3f MountRotation
Field Value
RiderOffset
Offset of the mount point
[DocumentAsJson("Optional", "0, 0, 0,", false)]
public Vec3f RiderOffset
Field Value
SeatId
public string SeatId
Field Value
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
Properties
Animation
Player's animation code that is used while seated
[DocumentAsJson("Recommended", "None", false)]
public string Animation { get; set; }