Table of Contents

Class EntityBehaviorRideableAccessories

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

Allows to attach specific items to entity.
Requires EntityBehaviorSelectionBoxes
If EntityBehaviorRideable is present, requires two attached items with isSaddle and isBridle attributes for entity to be ridden.
Uses the "rideableaccessories" code Open in GitHub

[DocumentAsJson]
[AddDocumentationProperty("isBridle", "Use this on a collectible type. If True, this collectible is recognized as a bridle when attached to an entity", "System.Boolean", "Optional", "False", true)]
[AddDocumentationProperty("isSaddle", "Use this on a collectible type. If True, this collectible is recognized as a saddle when attached to an entity?", "System.Boolean", "Optional", "False", true)]
public class EntityBehaviorRideableAccessories : EntityBehaviorAttachable
Inheritance
EntityBehaviorRideableAccessories
Inherited Members

Examples

"behaviors": [
 {
  "code": "rideableaccessories",
  "wearableSlots": [
      { "code": "head", "forCategoryCodes": ["bridle"], "attachmentPointCode": "HeadAP" },
      { "code": "face", "forCategoryCodes": ["face"], "attachmentPointCode": "FaceAP" },
      { "code": "neck", "forCategoryCodes": ["lantern"], "attachmentPointCode": "NeckAP" },
      { "code": "middleback", "forCategoryCodes": ["saddle"], "attachmentPointCode": "MidAP" },
      { "code": "middlebackunder", "forCategoryCodes": ["blanket"], "attachmentPointCode": "MidUnderAP" },
      { "code": "lowerback", "forCategoryCodes": ["bedroll", "pillion"], "attachmentPointCode": "RearAP" },
      { "code": "lowerbackside", "forCategoryCodes": ["sidebags"], "attachmentPointCode": "RearSideAP" },
      {
          "code": "frontrightside",
          "forCategoryCodes": ["utilities", "pot", "weaponfalx", "weapon1m", "bowshort", "bowlong"],
          "attachmentPointCode": "RFrontAP"
      },
      {
          "code": "frontleftside",
          "forCategoryCodes": ["utilities", "pot", "weaponfalx", "weapon1m", "bowshort", "bowlong"],
          "attachmentPointCode": "LFrontAP"
      },
      { "code": "gearleft", "forCategoryCodes": ["gear"], "attachmentPointCode": "TempGear1AP" },
      { "code": "gearback", "forCategoryCodes": ["gear"], "attachmentPointCode": "TempGear2AP" },
      { "code": "gearright", "forCategoryCodes": ["gear"], "attachmentPointCode": "TempGear3AP" }
  ]
 },
],

Properties

isBridle (Optional) (Default: False)

Use this on a collectible type. If True, this collectible is recognized as a bridle when attached to an entity

Property Value

Boolean

isSaddle (Optional) (Default: False)

Use this on a collectible type. If True, this collectible is recognized as a saddle when attached to an entity?

Property Value

Boolean