• 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.

[Trigger] Ordering a unit to cast a spell facing a unit

Status
Not open for further replies.
Level 15
Joined
Sep 3, 2006
Messages
1,738
Is there some way to make a dummy unit spawn at the unit casting the spell and then ordering the unit to cast a spell facing the way the caster is? Basically, it looks like this:

Unit casts Shockwave, Dummy Unit is created, Dummy Unit casts Shockwave forward from the caster.

All I need is the facing angle for the Shockwave >>
 

Attachments

  • shockwave.JPG
    shockwave.JPG
    31.3 KB · Views: 116
Level 12
Joined
Apr 27, 2008
Messages
1,228
Yeah.
You need to get the facing angle of the casting/triggering unit and than order the dummy unit to cast shockwave targeting position of triggering unit offset by 1(for example, but it better be something like 200) towards that degree.
Remember to clean up leaks.
 
Status
Not open for further replies.
Top