Xan_Kriegor
I can change this now in User CP.
- Reaction score
- 12
I'm trying to do something that (I think) should be fairly simple, but it's giving me problems. I have a unit Longbowman (based off the Night Elf Glaive Thrower, just some things like model was changed). What I want it to do is every time the longbowman is told to attack a unit, it will be issued the Attack Ground command where the enemy is so unless the player is actively aiming, moving targets will be impossible to hit. Here is the trigger I wrote:
However, it just doesn't work. When I command the longbowman to attack a unit, the Attack Ground command lights up as if it was being used, but the longbowman doesn't fire any arrows. He just stands there, facing the enemy. I can still manually use the Attack Ground command, but that's not quite what I want.
Also, if you can find a way to make it so that after each attack the longbowman will re-aim the Attack Ground (I don't care if it switches targets), then you'll be my hero!
Trigger:
- Longbowman attack
- Events
- Unit - A unit Is attacked
- Conditions
- (Unit-type of (Attacking unit)) Equal to Longbowman
- Actions
- Unit - Order (Attacking unit) to Attack Ground (Position of (Triggering unit))
- Events
However, it just doesn't work. When I command the longbowman to attack a unit, the Attack Ground command lights up as if it was being used, but the longbowman doesn't fire any arrows. He just stands there, facing the enemy. I can still manually use the Attack Ground command, but that's not quite what I want.
Also, if you can find a way to make it so that after each attack the longbowman will re-aim the Attack Ground (I don't care if it switches targets), then you'll be my hero!