added save attribute to model mechanic authored by Lxlp's avatar Lxlp
...@@ -71,14 +71,14 @@ NPC_Steve: ...@@ -71,14 +71,14 @@ NPC_Steve:
Collidable: false Collidable: false
Despawn: persistent Despawn: persistent
Skills: Skills:
- model{m=SteveModel;n=name} @self ~onSpawn - model{m=SteveModel;n=name;save=true} @self ~onSpawn
- model{m=SteveModel;n=name} @self ~onLoad
- cancelevent{sync=true} @self ~onDamaged - cancelevent{sync=true} @self ~onDamaged
``` ```
With the model mechanic the attributes are 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` - `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. - `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 # Step 4 - Spawning the NPC
... ...
......