I'm having a little bit of difficulty setting models for bow based on its pull percentage.
What I expected to happen was that the model would change to the specified model, remain as that model, and change to the next specified model when the bow reaches the next percentage amount.
For example, when the bow is at 20% charged, model A would appear, then switch to model B when the bow reaches 40%.
What is instead occurring is that the bow model changes to the specified model, then becomes the standby model again until the next percentage is reached.
For example, let's say the bow in standby is model Z. When the bow reaches 20% charge, the model changes to model A...then reverts back to model Z until it reaches 40% charge and becomes model B.
What do I need to add to the .json code to prevent the latter example from occurring?
I'm having a little bit of difficulty setting models for bow based on its pull percentage.
What I expected to happen was that the model would change to the specified model, remain as that model, and change to the next specified model when the bow reaches the next percentage amount.
For example, when the bow is at 20% charged, model A would appear, then switch to model B when the bow reaches 40%.
What is instead occurring is that the bow model changes to the specified model, then becomes the standby model again until the next percentage is reached.
For example, let's say the bow in standby is model Z. When the bow reaches 20% charge, the model changes to model A...then reverts back to model Z until it reaches 40% charge and becomes model B.
What do I need to add to the .json code to prevent the latter example from occurring?
< Code Snippet >
"overrides": [
{
"predicate": {
"pulling": 1,
"pull": 0.05
},
"model": "item/bow1"
},
{
"predicate": {
"pulling": 1,
"pull": 0.25
},
"model": "item/bow2"
},
{
"predicate": {
"pulling": 1,
"pull": 0.45
},
"model": "item/bow3"
},
{
"predicate": {
"pulling": 1,
"pull": 0.65
},
"model": "item/bow4"
},
{
"predicate": {
"pulling": 1,
"pull": 0.85
},
"model": "item/bow5"
},
{
"predicate": {
"pulling": 1,
"pull": 1
},
"model": "item/fullbow"
}
]
Help greatly appreciated. Thanks in advance.
Hello. I am a noob. Help please? Thanks.