Class HeldSounds
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Defines a set of sounds for a collectible object.
public class HeldSounds
- Inheritance
-
HeldSounds
Examples
"heldSoundsbyType": {
"*-lit-*": {
"idle": "held/torch-idle",
"equip": "held/torch-equip",
"unequip": "held/torch-unequip",
"attack": "held/torch-attack"
}
},
Fields
Attack (Optional) (Default: None)
The path to a sound played when this item is used to attack.
public AssetLocation Attack
Field Value
Equip (Optional) (Default: None)
The path to a sound played when this item is equipped.
public AssetLocation Equip
Field Value
Idle (Optional) (Default: None)
The path to a sound played when this item is being held.
public AssetLocation Idle
Field Value
InvPickup (Optional) (Default: "player/clayformhi")
The path to a sound played when this item is picked up in the inventory using the mouse.
public AssetLocation InvPickup
Field Value
InvPlace (Optional) (Default: "player/clayform")
The path to a sound played when this item is placed in the inventory using the mouse.
public AssetLocation InvPlace
Field Value
Unequip (Optional) (Default: None)
The path to a sound played when this item is unequipped.
public AssetLocation Unequip