• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Bomb/Granade Ability

Status
Not open for further replies.
Level 3
Joined
Jul 1, 2010
Messages
31
I'm trying to create a bomber command ability which looks so:

Unit uses ability
Create Flying unit which flies between Caster and Target point
Flying unit throws a bomb
Flying unit is flying the same way just some longer and explode at end

Can someone help me? i know it must be triggered.
 
Level 2
Joined
Sep 7, 2009
Messages
19
Maybe this is what you are searching for? :goblin_yeah:
remember that this is not mui at all.
  • Trigger cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to [ABILITY NAME]
    • Actions
      • set loc1 = (Position of (Trigering unit))
      • set loc2 = (Targeted point of ability being cast)
      • set angle1 = (angle between points loc1 and loc2)
      • set loc3 = (loc2 offset by 100.00 towards angle1)
      • Unit - create 1 unit of unit-type [DummyBomber?] for (Owner of (Trigering unit)) facing angle1)
      • set dummy = (last created unit)
      • Unit - add ability Stormcrow Form to dummy
      • Unit - remove ability Stormcrow Form to dummy
      • Unit - Order dummy to move-to loc3
  • Trigger loop
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • dummy is within 100.00 of loc2 Equal to True
        • Then - Actions
          • [MAKE SOME KIND A UNIT DROPPING DOWN + SOME SPECIEL EFFECTS]
        • Else - Actions
    • -------- ---------------------------------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • dummy is within 10.00 of loc3 Equal to True
        • Then - Actions
          • Unit - Make dummy explode upon death
        • Else - Actions
 
Status
Not open for further replies.
Top