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

Get casting behind of caster(immediately)

Status
Not open for further replies.
Level 17
Joined
Feb 11, 2011
Messages
1,860
  • Set tempLoc = (Position of (Triggering unit))
  • Set tempLoc = (tempLoc offset by 150.00 towards ((Facing of (Triggering unit)) x -1.00) degrees)
  • -------- Create dummy --------
  • Unit - Order No unit to Orc Tauren Chieftain - Shockwave tempLoc
  • Custom script: call RemoveLocation(udg_tempLoc)
This spell assumes you want your dummy to cast Shockwave behind the caster. It will target the point 150 distance behind the caster.

This was my 999th post! :D
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
@defskull: x(-1) is the same as +180. If you think about it:

12201006.jpg


-90 degrees is the opposite of 90 degrees.

This was my 1000th post! Yay! :p
 
Status
Not open for further replies.
Top