s&box docs

public sealed class Sandbox.Clothing : Sandbox.GameResource

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

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 5 methods

public bool CanBeWornWith(Sandbox.Clothing target)

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

public static System.Collections.Generic.List`1<Sandbox.SceneModel> DressSceneObject(Sandbox.SceneModel citizen, System.Collections.Generic.IEnumerable`1<Sandbox.Clothing> Clothing)Obsolete

Obsolete: We should be using Scene/Components now

public bool HasPermissions()

Can we wear this item?

Properties

Showing 29 properties

public bool Sandbox.Clothing.AllowTintSelect { get; set; }

public System.Collections.Generic.Dictionary`2<string,string> Sandbox.Clothing.ConditionalModels { get; set; }

A list of conditional models. (key) = tag(s), (value) = model

public string Sandbox.Clothing.EyesMaterial { get; set; }

Replace the eyes with this material

public bool Sandbox.Clothing.HasHumanSkin { get; set; }

public float Sandbox.Clothing.HeelHeight { get; set; }

Do we need to lift the heel up?

public Sandbox.Clothing.BodyGroups Sandbox.Clothing.HideBody { get; set; }

Which body parts of the player model should not show when this clothing is equipped.

public string Sandbox.Clothing.HumanAltFemaleModel { get; set; }

The model to bonemerge to the human player when this clothing is equipped.

public string Sandbox.Clothing.HumanAltModel { get; set; }

The model to bonemerge to the human player when this clothing is equipped.

public string Sandbox.Clothing.HumanEyesMaterial { get; set; }

Replace skin with this

public ulong Sandbox.Clothing.HumanSkinBodyGroups { get; set; }

Bodygroup on the model to choose

public string Sandbox.Clothing.HumanSkinMaterial { get; set; }

Replace skin with this

public string Sandbox.Clothing.HumanSkinMaterialGroup { get; set; }

Bodygroup on the model to choose

public string Sandbox.Clothing.HumanSkinModel { get; set; }

Model to replace the human skin with

public Sandbox.TagSet Sandbox.Clothing.HumanSkinTags { get; set; }

Allows adding tags for this skin, ie "female". This affects which alternative clothing models are used with it.

public string Sandbox.Clothing.MaterialGroup { get; set; }

Which material group of the model to use.

public string Sandbox.Clothing.Model { get; set; }

The model to bonemerge to the player when this clothing is equipped.

public Sandbox.Clothing Sandbox.Clothing.Parent { get; set; }Obsolete

The clothing to parent this too. It will be displayed as a variation of its parent

Obsolete: This API member is obsolete.

public string Sandbox.Clothing.SkinMaterial { get; set; }

Replace the skin with this material

public Sandbox.Clothing.Slots Sandbox.Clothing.SlotsOver { get; set; }

Which slots this clothing takes on "outer" layer.

public Sandbox.Clothing.Slots Sandbox.Clothing.SlotsUnder { get; set; }

Which slots this clothing takes on "inner" layer.

public System.Nullable`1<int> Sandbox.Clothing.SteamItemDefinitionId { get; set; }

The Steam Item Definition ID for this clothing item, if it's an inventory item

public string Sandbox.Clothing.SubCategory { get; set; }Obsolete

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.

Obsolete: This API member is obsolete.

public string Sandbox.Clothing.Subtitle { get; set; }

A subtitle for this clothing piece.

public string Sandbox.Clothing.Tags { get; set; }

public float Sandbox.Clothing.TintDefault { get; set; }

public string Sandbox.Clothing.Title { get; set; }

Name of the clothing to show in UI.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Clothing

On this page

Constructorspublic Clothing()Methodspublic System.Boolean CanBeWornWith(Sandbox.Clothing target)public static System.Collections.Generic.List`1<Sandbox.SceneModel> DressSceneObject(Sandbox.SceneModel citizen, System.Collections.Generic.IEnumerable`1<Sandbox.Clothing> Clothing)public System.String GetModel(System.Collections.Generic.IEnumerable`1<Sandbox.Clothing> clothingList, Sandbox.TagSet tagset)public System.String GetModel(System.Collections.Generic.IEnumerable`1<Sandbox.Clothing> clothingList)public System.Boolean HasPermissions()Propertiespublic System.Boolean Sandbox.Clothing.AllowTintSelect { get; set; }public Sandbox.Clothing.ClothingCategory Sandbox.Clothing.Category { get; set; }public System.Collections.Generic.Dictionary`2<System.String,System.String> Sandbox.Clothing.ConditionalModels { get; set; }public System.String Sandbox.Clothing.EyesMaterial { get; set; }public System.Boolean Sandbox.Clothing.HasHumanSkin { get; set; }public System.Single Sandbox.Clothing.HeelHeight { get; set; }public Sandbox.Clothing.BodyGroups Sandbox.Clothing.HideBody { get; set; }public System.String Sandbox.Clothing.HumanAltFemaleModel { get; set; }public System.String Sandbox.Clothing.HumanAltModel { get; set; }public System.String Sandbox.Clothing.HumanEyesMaterial { get; set; }public System.UInt64 Sandbox.Clothing.HumanSkinBodyGroups { get; set; }public System.String Sandbox.Clothing.HumanSkinMaterial { get; set; }public System.String Sandbox.Clothing.HumanSkinMaterialGroup { get; set; }public System.String Sandbox.Clothing.HumanSkinModel { get; set; }public Sandbox.TagSet Sandbox.Clothing.HumanSkinTags { get; set; }public Sandbox.Clothing.IconSetup Sandbox.Clothing.Icon { get; set; }public System.String Sandbox.Clothing.MaterialGroup { get; set; }public System.String Sandbox.Clothing.Model { get; set; }public Sandbox.Clothing Sandbox.Clothing.Parent { get; set; }public System.String Sandbox.Clothing.SkinMaterial { get; set; }public Sandbox.Clothing.Slots Sandbox.Clothing.SlotsOver { get; set; }public Sandbox.Clothing.Slots Sandbox.Clothing.SlotsUnder { get; set; }public System.Nullable`1<System.Int32> Sandbox.Clothing.SteamItemDefinitionId { get; set; }public System.String Sandbox.Clothing.SubCategory { get; set; }public System.String Sandbox.Clothing.Subtitle { get; set; }public System.String Sandbox.Clothing.Tags { get; set; }public System.Single Sandbox.Clothing.TintDefault { get; set; }public Sandbox.Gradient Sandbox.Clothing.TintSelection { get; set; }public System.String Sandbox.Clothing.Title { get; set; }Metadata