Hello again :)
When a unit that has no weapon itself is beeing attacked, it naturally retreats a little bit. How can I prevent that in editor for all units?
Greets
I believe you're looking for Behavior Response on the unit in the data editor.
There are 3 options. Acquire, Flee and No Response. Acquire tries to engage when attacked, and if it can't, it flees. Flee doesn't even check to see if the attacking unit is attackable and flees. No Response makes the unit stand still when attacked.
only if you have a displayEffect iirc,
but there should be a Icon in actors, too for weapons (there's one for armor i know of) which you could remove, and you could flag it as Hidden in its options(WeaponData) too
Hello again :) When a unit that has no weapon itself is beeing attacked, it naturally retreats a little bit. How can I prevent that in editor for all units? Greets
@fortuneNext: Go
Instead of removing the weapon and keep the weaponarray blank/null - you can add a dummy weapon with NO Effect :)
But then, woudnt be this dummy weapon shown in game at the unit panel?
I'm not in front of my computer, I'm in class, but this might work.
You can create a trigger that says:
There is probably a field where you can change the retreat field in the data editor, but this is a workaround that should work.
I believe you're looking for Behavior Response on the unit in the data editor.
There are 3 options. Acquire, Flee and No Response. Acquire tries to engage when attacked, and if it can't, it flees. Flee doesn't even check to see if the attacking unit is attackable and flees. No Response makes the unit stand still when attacked.
@fortuneNext: Go
only if you have a displayEffect iirc,
but there should be a Icon in actors, too for weapons (there's one for armor i know of) which you could remove,
and you could flag it as Hidden in its options(WeaponData) too
@Zero0018: Go
this is wrong, your method makes the unit to stop on position which is not the same as not retreating as you cannot move anymore with your trigger
@kaji2: Go
That was perfectly what I was looking for. Thank you.