• 🏆 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] Jump It!

Status
Not open for further replies.
Level 13
Joined
Apr 15, 2008
Messages
854
Hey,

I'm making a custom GUI spell... ~

How to make a unit jump in the air very smooth and land it little bit faster with GUI ?

Cuz I wanna make a spell like warstomp that if you cast it all the units in the range of 600 will jump in the air and land and then get 60 or 100 damage or something.

Rep for the awesome user who helps me!
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Create dummy unit with impale and implement this trigger:

Trigger creates 10 dummy units that cast ''Impale''. Each dummy faces 36 degrees different that previous.

  • War Stomp Special Effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to <Your Ability>
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 <Dummy> for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
          • Set TempPoint2 = (TempPoint offset by 256.00 towards ((Real((Integer A))) x 36.00) degrees)
          • Unit - Order (Last created unit) to Undead Crypt Lord - Impale TempPoint2
          • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)
It works fine for me.
 
Level 13
Joined
Apr 15, 2008
Messages
854
Create dummy unit with impale and implement this trigger:

  • War Stomp Special Effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to <Your Ability>
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 <Dummy> for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
          • Set TempPoint2 = (TempPoint offset by 256.00 towards ((Real((Integer A))) x 36.00) degrees)
          • Unit - Order (Last created unit) to Undead Crypt Lord - Impale TempPoint2
          • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)
It works fine for me.

Gonna try it thanks!
 
Status
Not open for further replies.
Top