added save attribute to model mechanic authored by Lxlp's avatar Lxlp
......@@ -71,14 +71,14 @@ NPC_Steve:
Collidable: false
Despawn: persistent
Skills:
- model{m=SteveModel;n=name} @self ~onSpawn
- model{m=SteveModel;n=name} @self ~onLoad
- model{m=SteveModel;n=name;save=true} @self ~onSpawn
- cancelevent{sync=true} @self ~onDamaged
```
With the model mechanic the attributes are
- `m=SteveModel` This is where the name of your model goes, for example we have `plugins/ModelEngine/Blueprints/SteveModel.bbmodel`
- `n=name` This is the name of our [nametag bone](https://git.mythiccraft.io/mythiccraft/model-engine-4/-/wikis/Modeling/Bone-Behaviors#nametag) we created.
- `save=true` Tells ModelEngine that the model should be preserved, even across restarts
# Step 4 - Spawning the NPC
......
......