API ReferenceSandbox
ModelHitboxBuilderclass
Configures a model hitbox.
object→ModelHitboxBuilder
Methods5
Showing 5 methods
public Sandbox.ModelHitboxBuilder AddTag(string tag)
Adds a tag to the hitbox.
| Parameter | Type | Description |
|---|---|---|
| tag | string | The tag to add. |
public Sandbox.ModelHitboxBuilder AddTags(string[] tags)
Adds tags to the hitbox.
| Parameter | Type | Description |
|---|---|---|
| tags | string[] | The tags to add. |
public Sandbox.ModelHitboxBuilder WithBone(string boneName)
| Parameter | Type | Description |
|---|---|---|
| boneName | string | The bone name. |
public Sandbox.ModelHitboxBuilder WithName(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | The hitbox name. |
public Sandbox.ModelHitboxBuilder WithSurface(string surfaceName)
| Parameter | Type | Description |
|---|---|---|
| surfaceName | string | The surface name. |
No results match this filter.
Properties4
Showing 4 properties
public string Sandbox.ModelHitboxBuilder.BoneName { get; set; }
The name of the bone the hitbox follows.
Returns:
string—public string Sandbox.ModelHitboxBuilder.Name { get; set; }
The hitbox name.
Returns:
string—public string Sandbox.ModelHitboxBuilder.SurfaceName { get; set; }
The physics surface name applied to the hitbox.
Returns:
string—public System.Collections.Generic.IReadOnlyList`1<string> Sandbox.ModelHitboxBuilder.Tags { get; set; }
The hitbox tags.
Returns:
IReadOnlyList<string>—No results match this filter.