Auto-target ability?

Roku

New Member
Reaction score
3
Hey, is it possible to create a dummy ability with no target, that when cast, will for example cast a storm bolt on the unit the hero is attacking. I'm looking for a method on how to detect the unit the hero is attacking when the ability is cast.
 
B

benj_war3

Guest
You mean like this? Use the sentence on Bold

Condition:
Code:
[B]((Target unit of ability being cast)[/B] is A ground unit) Equal to True

Action:

Code:
Unit - Kill ([B]Target unit of ability being cast[/B])
 

THE_X

New Member
Reaction score
49
You could constantly if a unit is being attacked


Code:
Set Unit
    Events
        Unit is attacked
    Conditions
        Attacking unit is a hero is equal to True 
     Actions
           Set Attacked_Unit[(Player number of (Owner of (Attacking unit)))] = Attacked unit.



Code:
Dummy Cast
    Events
       Unit starts the effect of an ablity
    Conditions
         Ablity being cast is equal to (dummy auto stormbolt ablity)
    Actions
         Create 1 Dummy for owner of Triggering Unit at Temp_Point Facing Default Building Direction
         Add Ablity (Dummy Auto Storm Bolt) to last created unit.
         Add a 3 second Generic Experation Timer to Last Created Unit
         Unit - Order Last Created Unit to (mountian king - storm bolt)Attacked_Unit[(Player number of (Owner of (Triggering Unit)))]

Free handed those codes so may have to search for conditions n such.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top