Problem with Forcing Unit to Attack

LordSaddler1

New Member
Reaction score
4
I've been working on a trigger where you cast a spell on a target and then it forces that target to attack the nearest unit (friend or foe). The only problem i have is that my trigger to force them to attack is
Code:
Berserk Frenzy Attack
    Events
        Time - Every 0.01 seconds of game time
    Conditions
    Actions
        Unit - Order Berserker_Frenzy_Killer to Attack Berserk_Frenzy_Target
The problem with it is, whenever it gives the command to attack, it also gives the command to stop automatically. I have no idea why.
 

CaptDeath

New Member
Reaction score
103
so basically your telling him to attack now! every .01 seconds well it takes longer than .01 seconds for him to attack so before he can attack hes told to attack again which cause him to start attacking again but .....
 

D.V.D

Make a wish
Reaction score
73
Remove the Every 0.01 seconds of the game and replace the event with somehting like Elapsed Time equal to 1.00.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
You can set the attack delay fields (object editor) to 0
 

HydraRancher

Truth begins in lies
Reaction score
197
hes gotta be as fast as hell if you change delay BUT not time.
Diagrams!

|...................................|

|..........BladeMasterz........|

|...................................|

Alright, the blademaster attacks the top right which is in range 200. However before he even STARTS moving he has to attack top left and then it'll look like the finger on :nuts: he'll turn and turn over and over again
^---->|
|:mad:.....|
|.<----V
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
hes gotta be as fast as hell if you change delay BUT not time.
Diagrams!

|...................................|

|..........BladeMasterz........|

|...................................|

Alright, the blademaster attacks the top right which is in range 200. However before he even STARTS moving he has to attack top left and then it'll look like the finger on :nuts: he'll turn and turn over and over again
^---->|
|:mad:.....|
|.<----V

Well, first off, Attack Cooldown* will still be there, preventing him from attacking too fast ^^

And second, i think his trigger will always make him target the same unit


*Cooldown != Attack Delay

What I mean by attack delay is Combat - Attack - Animation Backswing Point and Combat - Attack - Animation Damage Point
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top