s&box docs

public sealed class Sandbox.Dresser : Sandbox.Component

Allows easily dressing a citizen or human in clothing

Constructors

Showing 1 constructors

Methods

Showing 5 methods

public System.Threading.Tasks.ValueTask Apply()

public void CancelDressing()

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

public void OnManualChange(float a, float b)

Called when Height, Age or Tint is changed

public void Randomize()

Make a random outfit

Properties

Showing 10 properties

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

Should we change the height too?

public Sandbox.SkinnedModelRenderer Sandbox.Dresser.BodyTarget { get; set; }

Who are we dressing? This should be the renderer of the body of a Citizen or Human

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

True if we're dressing, in an async way

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

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

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

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

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.

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

Metadata

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

On this page