Api Sandbox Clothing
class

Clothing

public sealed class Clothing : GameResource

Describes an item of clothing and implicitly which other items it can be worn with

Constructors

Clothing()

Properties

Name Type Description
HasHumanSkin Boolean
HumanSkinModel String Model to replace the human skin with
HumanSkinMaterial String Replace skin with this
HumanEyesMaterial String Replace skin with this
HumanSkinBodyGroups UInt64 Bodygroup on the model to choose
HumanSkinMaterialGroup String Bodygroup on the model to choose
HumanSkinTags TagSet Allows adding tags for this skin, ie "female". This affects which alternative clothing models are used with it.
Title String Name of the clothing to show in UI.
Subtitle String A subtitle for this clothing piece.
Category ClothingCategory What kind of clothing this is?
ConditionalModels Dictionary<String, String> A list of conditional models. (key) = tag(s), (value) = model
Tags String
SubCategory String This should be a single word to describe the subcategory, and should match any other items you want to categorize in the same bunch. The work will be tokenized so it can become localized.
Parent Clothing The clothing to parent this too. It will be displayed as a variation of its parent
Model String The model to bonemerge to the player when this clothing is equipped.
HumanAltModel String The model to bonemerge to the human player when this clothing is equipped.
HumanAltFemaleModel String The model to bonemerge to the human player when this clothing is equipped.
SkinMaterial String Replace the skin with this material
EyesMaterial String Replace the eyes with this material
MaterialGroup String Which material group of the model to use.
HeelHeight Single Do we need to lift the heel up?
SlotsUnder Slots Which slots this clothing takes on "inner" layer.
SlotsOver Slots Which slots this clothing takes on "outer" layer.
HideBody BodyGroups Which body parts of the player model should not show when this clothing is equipped.
AllowTintSelect Boolean
TintSelection Gradient
TintDefault Single
SteamItemDefinitionId Int32? The Steam Item Definition ID for this clothing item, if it's an inventory item
Icon IconSetup Icon for this clothing piece.

Methods

String GetModel(IEnumerable<Clothing> clothingList)
String GetModel(IEnumerable<Clothing> clothingList, TagSet tagset)
Boolean HasPermissions()

Can we wear this item?

Boolean CanBeWornWith(Clothing target)

Return true if this item of clothing can be worn with the target item, at the same time.

static List<SceneModel> DressSceneObject(SceneModel citizen, IEnumerable<Clothing> Clothing)
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.Clothing