API ReferenceSandbox
Dresserclass
Allows easily dressing a citizen or human in clothing
Constructors1
Showing 1 constructors
public Dresser()
No results match this filter.
Methods5
Showing 5 methods
public System.Threading.Tasks.ValueTask Apply()
Returns:
ValueTask—public void CancelDressing()
If we're dressing in an async way - stop it.
Returns:
void—public void Clear()
Returns:
void—public void OnManualChange(float a, float b)
Called when Height, Age or Tint is changed
| Parameter | Type | Description |
|---|---|---|
| a | float | — |
| b | float | — |
Returns:
void—public void Randomize()
Make a random outfit
Returns:
void—No results match this filter.
Properties10
Showing 10 properties
public bool Sandbox.Dresser.ApplyHeightScale { get; set; }
Should we change the height too?
Returns:
bool—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 System.Collections.Generic.List`1<Sandbox.ClothingContainer.ClothingEntry> Sandbox.Dresser.Clothing { get; set; }
public bool Sandbox.Dresser.IsDressing { get; set; }
True if we're dressing, in an async way
Returns:
bool—public float Sandbox.Dresser.ManualAge { get; set; }
Returns:
float—public float Sandbox.Dresser.ManualHeight { get; set; }
Returns:
float—public float Sandbox.Dresser.ManualTint { get; set; }
Returns:
float—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.
Returns:
bool—public Sandbox.Dresser.ClothingSource Sandbox.Dresser.Source { get; set; }
Where to get the clothing from
public System.Collections.Generic.List`1<string> Sandbox.Dresser.WorkshopItems { get; set; }
Returns:
List<string>—No results match this filter.