Dresserclass

Allows easily dressing a citizen or human in clothing

objectComponentDresser
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.Dresser : Sandbox.Component

Constructors1

Showing 1 constructors

Methods5

Showing 5 methods

public System.Threading.Tasks.ValueTask Apply()PUBLIC

Returns:ValueTask

public void CancelDressing()PUBLIC

If we're dressing in an async way - stop it.

Returns:void

public void Clear()PUBLIC

Returns:void

public void OnManualChange(float a, float b)PUBLIC

Called when Height, Age or Tint is changed

ParameterTypeDescription
afloat
bfloat
Returns:void

public void Randomize()PUBLIC

Make a random outfit

Returns:void

Properties10

Showing 10 properties

public bool Sandbox.Dresser.ApplyHeightScale { get; set; }PUBLICGETSET

Should we change the height too?

Returns:bool

public bool Sandbox.Dresser.IsDressing { get; set; }PUBLICGETSET

True if we're dressing, in an async way

Returns:bool

public float Sandbox.Dresser.ManualAge { get; set; }PUBLICGETSET

Returns:float

public float Sandbox.Dresser.ManualHeight { get; set; }PUBLICGETSET

Returns:float

public float Sandbox.Dresser.ManualTint { get; set; }PUBLICGETSET

Returns:float

public bool Sandbox.Dresser.RemoveUnownedItems { get; set; }PUBLICGETSET

When using `Sandbox.Dresser.ClothingSource.OwnerConnection`, strip any clothing items that are not owned in their Steam Inventory. Disable only if your game handles ownership checks itself.

Returns:bool

public System.Collections.Generic.List`1<string> Sandbox.Dresser.WorkshopItems { get; set; }PUBLICGETSET

Returns:List<string>

On this page