🏆 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!
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.