• 🏆 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!

Dummy cast a spell?

Status
Not open for further replies.
Level 16
Joined
May 1, 2008
Messages
1,605
Moin moin =)

Hope this can help ya:

JASS:
local unit u = TheDummy
local real f = GetUnitFacing(u)
local real x = GetUnitX(u) + 5 * Cos(f * BJ_DEGTORAD)
local real y = GetUnitY(u) + 5 * Sin(f * BJ_DEGTORAD)

call IssueTargetOrder(u,"impale",x,y)

set u = null

Now you can add or subtract from the real f to change the direction.

Greetings and Peace
Dr. Boom
 
Level 11
Joined
Jun 20, 2009
Messages
880
Set Location = XX
Orded Dummy to cast Crypt Lord - Impale to Location

That's it x)


I made a test map for you. It's a "Super Impale". When you cast normal impale, it will create dummy
units to cast impale to 10 different ways.

Just ask if you dont understand something.
 

Attachments

  • Super Impale.w3x
    18.2 KB · Views: 46
Status
Not open for further replies.
Top