• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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: 115
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