Hello, I really gone throught it but can't figure out how to make that an unit with a behaviour, when hit, is added another behaviour (10% movement speed when hit to be exact).
Searching in "damage response" part of the behaviour but can't nail it. Anyone got an idea ?
There is a field called Handled, which lets you specify an effect. This effect is used, whenever the damage response is executed. If the Location is set to Defender, which should be the case for your behavior, the effect will be executed from your unit at the damage source.
So if you want to apply a behavior to your unit, set the Handled- field to your Apply Behavior effect, applying the movement. Make sure, it gets applied to Source.
Also make sure, the Chance of the damage response is not zero, and you selected, which damage kinds should trigger the response.
Thanks you for your fast answer ! However, I can't find "source". When I click on "defender" there's only it and "attacker" to be chosen from :(
Is that normal ? :'(
Not at the damage response. At the effect. Defender is correct. However, if you add your Apply Behavior effect and it will get executed; the target unit for the effect will be the enemy attacking you, and the source unit will be your attacked unit. We don't want the extra movespeed to be applied on the enemy, but to our own unit; so we change the Unit + field of the Apply Behavior effect to Source
Hello, I really gone throught it but can't figure out how to make that an unit with a behaviour, when hit, is added another behaviour (10% movement speed when hit to be exact).
Searching in "damage response" part of the behaviour but can't nail it. Anyone got an idea ?
There is a field called Handled, which lets you specify an effect. This effect is used, whenever the damage response is executed. If the Location is set to Defender, which should be the case for your behavior, the effect will be executed from your unit at the damage source.
So if you want to apply a behavior to your unit, set the Handled- field to your Apply Behavior effect, applying the movement. Make sure, it gets applied to Source.
Also make sure, the Chance of the damage response is not zero, and you selected, which damage kinds should trigger the response.
Thanks you for your fast answer ! However, I can't find "source". When I click on "defender" there's only it and "attacker" to be chosen from :(
Is that normal ? :'(
Not at the damage response. At the effect. Defender is correct. However, if you add your Apply Behavior effect and it will get executed; the target unit for the effect will be the enemy attacking you, and the source unit will be your attacked unit. We don't want the extra movespeed to be applied on the enemy, but to our own unit; so we change the Unit + field of the Apply Behavior effect to Source
Sorry for the lack of clarification ;)
Ok, my bad : I tested and it works like a charm ! All my kudo to you !!