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

lung attack

Status
Not open for further replies.
Level 7
Joined
Oct 15, 2005
Messages
283
well im makinga wearwolf hero and im trying to figure out how to make him jump at the person and stun/deal dmg to him.

can some one help me out with this spell?

P.S
( i dont mean jump up in the air, I mean jump at the person like a person runing at them but a little leap)

thank you to who ever can help me out here
 
Level 27
Joined
Feb 22, 2006
Messages
3,052
Before u do trigs, make a bash with 100% bash, your duration and damage, then make a unit with tree of life upgrade ability model, no shadow, and has the bash ability, locust, and invulnerability. Make it's attack deal 1-1 damage and have 99999 range. have the cooldown be 999.
Code:
Unit - Unit begins casting an abil
abil = Charge
Set unit_var = triggering unit
set target_var = targeted unit of abil being cast

Code:
Time - Every .05 seconds
set point1 = position of target_var
set point2 = position of unit_var 
set point3 = point with polar offset - point2 offset by 30* toward angle between point2 and point1
Move unit to point3
If
Distance between point1 and point2 less than or equal to 100, then do
Unit - create 1 dummy_basher for owner of unit_var at point2 facing point1.
Order last created unit to attack target_var
custom script: call RemoveLocation (udg_point1)
custom script: call RemoveLocation (udg_point2)
custom script: call RemoveLocation (udg_point3)
Code:
Unit is attacked
type of attacking unit equal to dummy_basher
wait 1 second
remove attacking unit from the game.
The things with * can be modified.
All of this is important, and sorry if it's messy...
--donut3.5--
 
Status
Not open for further replies.
Top