I'm trying to create an aura similar to the Mothership's cloaking field. When any unit enters this area, they receive 10% less damage.
Right now, the aura works to some extent. Every 0.417 seconds, a behaviour is applied to any unit inside the aura. This behaviour lasts for 0.417 seconds and modifies the damage fraction to 0.9. So far, this works as intended.
However, since the duration is so similar to the period, the behaviour turns "on and off" extremely quickly. Sometimes, when hit, the damage fraction doesn't work because of this. Does anyone know a different method to fix this problem?
Thanks for the help, it's no longer turning on and off.
However, doesn't this mean that the two behaviours overlap eachother? And in overlapping, stack damage fraction to 0,9 * 0,9 = 0,81 = 81% for 1/16th of a second?
If you want the behavior to stack, you need to modify the Stats: Maximum Stack Count field. If this is set to 1, the behaviors will never overlap.
If it should stack for multiple casters, use the Stats: Maximum Stack Count per Caster field, you can limit the stacks per caster to 1 and overall to infinite. This way, the behavior will not overlap with itself, unless it is applied by another caster.
Also, your durations will get rounded to the next multiple of 0.0625 anyway, so I suggest specifying this yourself and use either 0.375 or 0.4375 seconds.
Hello!
I'm trying to create an aura similar to the Mothership's cloaking field. When any unit enters this area, they receive 10% less damage.
Right now, the aura works to some extent. Every 0.417 seconds, a behaviour is applied to any unit inside the aura. This behaviour lasts for 0.417 seconds and modifies the damage fraction to 0.9. So far, this works as intended.
However, since the duration is so similar to the period, the behaviour turns "on and off" extremely quickly. Sometimes, when hit, the damage fraction doesn't work because of this. Does anyone know a different method to fix this problem?
Make the behavior's duration 1/16th of a second longer.
@Ahli634: Go
Thanks for the help, it's no longer turning on and off.
However, doesn't this mean that the two behaviours overlap eachother? And in overlapping, stack damage fraction to 0,9 * 0,9 = 0,81 = 81% for 1/16th of a second?
Or will that not matter?
If you want the behavior to stack, you need to modify the Stats: Maximum Stack Count field. If this is set to 1, the behaviors will never overlap.
If it should stack for multiple casters, use the Stats: Maximum Stack Count per Caster field, you can limit the stacks per caster to 1 and overall to infinite. This way, the behavior will not overlap with itself, unless it is applied by another caster.
Also, your durations will get rounded to the next multiple of 0.0625 anyway, so I suggest specifying this yourself and use either 0.375 or 0.4375 seconds.