shooting forward

Status
Not open for further replies.
how do i make a unit cast an ability at a point in front of it without manually selecting the target?

Make a dummy ability based off something that doesn't require a target to cast. When it's cast, make a dummy with the actual ability. Get the casters facing angle, do some math, and have it cast, targeting a point in front of the caster. Remove the dummy. Win.
 
can you give me an example of a trigger?

  • Events:
  • Unit - starts the effect of an ability
  • Conditions:
  • Ability is equal to DUMMY_SPELL(spell)
  • Events:
  • Set HERO_IS_FACING(real) = (get facing angle)
  • Set hero_point = position of casting unit
  • Set frontal_point = (area directly in front hero_is_facing, I don't remember)
  • Unit - Create 1 Dummy_Unit at hero_point
  • Unit - Give last created unit REAL_SPELL
  • Unit - Order last created unit to cast REAL_SPELL at frontal_point
  • Wait X seconds
  • Unit - Kill last created unit
  • Custom Script - somethingsomething destroy points/reals
Something like that. If you don't know this much, you need to be reading some tutorials.
 
it doesn't have a shockwave choice, which is what i need

EDIT:
never mind, i figured it out
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top