Spell using arrow autocast

Tinker

New Member
Reaction score
1
How can i make an arrow autocast for a melee hero that when it is activated the hero has to chain lightning to the attacked unit???
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you need to use a dummy unit and a damage detection system, then do this:
Trigger:
  • Chain Lightning on Attack
    • Events
      • Game - GDD_Event becomes equal to 0.00
    • Conditions
      • GDD_DamagedUnit has (your auto-cast arrow buff) is True (boolean comparison)
    • Actions
      • Set Temp_Point = Position of GDD_DamageSource
      • Unit - Create 1 (Dummy unit) at Temp_Point facing (Facing angle of GDD_DamageSource
      • Unit - Add chain lightning to (Last Created unit)
      • Unit - Create a 2 second expiration timer for (Last Created unit)
      • Unit - Order (Last Created unit) to chain lightning GDD_DamagedUnit
      • Custom Script: call RemoveLocation(udg_Temp_Point)
 

Tinker

New Member
Reaction score
1
Can you explain variables pls? i dont know wich units are they?

GDD_DamagedUnit what is it?
GDD_Event, my game doesnt start at 0.00 will it work?
GDD_DamageSource what unit is it? triggering or?

damage detection system?

God, why is it way too complicated
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
click the link i posted please
it gives an explanation for each of those variables
GDD_ is the prefix for the Gui Friendly Damage Detection system that i linked to
GDD_Event is a real variable that the system uses, when it becomes 0 a unit took damage
GDD_DamagedUnit is the unit that took damage
GDD_DamageSource is the unit that dealt the damage
 
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