Many mechanics authored by Ticxo's avatar Ticxo
To be written
\ No newline at end of file
[< Back to mechanic page](../../Model-Mechanics)
Mechanic: PartVisibility
===============
Alias: PartVis
---------------
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 |
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
```
\ No newline at end of file