• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

shooting forward

Status
Not open for further replies.
Level 12
Joined
Mar 16, 2006
Messages
992
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.
 
Level 12
Joined
Mar 16, 2006
Messages
992
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.
 
Level 9
Joined
Dec 6, 2007
Messages
233
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.
Top