|
|
[< Back to mechanic page](/Skills/Mechanics)
|
|
|
|
|
|
## Description
|
|
|
Toggle the visibility of a renderer bone.
|
|
|
|
|
|
## Attributes
|
|
|
| Attribute | Aliases | Description | Type | Default |
|
|
|
|------------|------------------|-------------------------------------------------------|---------|--------------|
|
|
|
| modelid | m, mid, model | Targeted model. If not set, targets all models | String | |
|
|
|
| partid | p, pid, part | Targeted part | String | Empty String |
|
|
|
| visibility | v, visible | Visibility of the parts | Boolean | false |
|
|
|
| exactmatch | em, exact, match | Should the tested bone matches the part id completely | Boolean | true |
|
|
|
| child | | Should the mechanic also hide all child bones | Boolean | false |
|
|
|
|
|
|
## Examples
|
|
|
#### Hiding a specific bone:
|
|
|
|
|
|
This will hide the right arm of the model on spawn.
|
|
|
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- model{m=test_model} @self ~onSpawn
|
|
|
- partvis{m=test_model;p=right_arm} @self ~onSpawn
|
|
|
```
|
|
|
|
|
|
---
|
|
|
|
|
|
#### Hide the entire model:
|
|
|
|
|
|
This will hide the entire model on spawn.<br>
|
|
|
Not sure how this would be helpful, but here it is.
|
|
|
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- model{m=test_model} @self ~onSpawn
|
|
|
# Exact match is set to false, so all bones would match the empty string of part id.
|
|
|
- partvis{m=test_model;em=false} @self ~onSpawn
|
|
|
```
|
|
|
|
|
|
## Aliases
|
|
|
- [x] PartVisibility |
|
|
\ No newline at end of file |