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

help with trigger

Status
Not open for further replies.
Level 4
Joined
Dec 4, 2014
Messages
97
i wanted to let my water dragon fly but it doesnt fly could you help me pls

here is my trigger:

  • Water Dragon
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to (==) Water Dragon
    • Actions
      • Set Zabuza_Caster = (Triggering unit)
      • -------- - --------
      • Set Zabuza_Speed = 45.00
      • -------- - --------
      • Set Zabuza_Point_1 = (Position of Zabuza_Caster)
      • -------- - --------
      • Set Zabuza_Point_2 = (Target point of ability being cast)
      • -------- - --------
      • Set Zabuza_Angel_1 = (Angle from (Position of Zabuza_Caster) to Zabuza_Point_2)
      • -------- - --------
      • Unit - Create 1 Water Dragon Zabuza for (Owner of Zabuza_Caster) at (Position of Zabuza_Caster) facing (Facing of Zabuza_Caster) degrees
      • -------- - --------
      • Set Zabuza_Dummy_1 = (Last created unit)
      • -------- - --------
      • -------- - --------
      • -------- - --------
      • Trigger - Turn on Water Dragon Loop <gen>
  • Water Dragon Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set Zabuza_Point_1 = (Position of Zabuza_Dummy_1)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Distance between Zabuza_Point_1 and Zabuza_Point_2) Greater than (>) 45.00
          • Then - Actions
            • Set Zabuza_Point_3 = (Zabuza_Point_1 offset by Zabuza_Speed towards Zabuza_Angel_1 degrees)
            • -------- - --------
            • Unit - Create 1 Tidal eruption Zabuza for (Owner of Zabuza_Caster) at (Position of Zabuza_Caster) facing Default building facing (270.0) degrees
            • -------- - --------
            • Set Zabuza_Dummy_2 = (Last created unit)
            • -------- - --------
            • Animation - Change Zabuza_Dummy_2 flying height to 200.00 at 0.00
            • -------- - --------
            • -------- - --------
            • Unit - Move Zabuza_Dummy_2 instantly to (Position of Zabuza_Dummy_1)
            • -------- - --------
            • Unit - Move Zabuza_Dummy_1 instantly to Zabuza_Point_3
            • -------- - --------
            • Custom script: call RemoveLocation(udg_Zabuza_Point_3)
          • Else - Actions
            • -------- - --------
            • Unit - Add Sturmkrähengestalt to Zabuza_Dummy_2
            • -------- - --------
            • Unit - Remove Sturmkrähengestalt from Zabuza_Dummy_2
            • -------- - --------
            • Unit - Add Sturmkrähengestalt to Zabuza_Dummy_1
            • -------- - --------
            • Unit - Remove Sturmkrähengestalt from Zabuza_Dummy_1
            • Set Zabuza_Group = (Units within 500.00 of (Position of Zabuza_Dummy_1))
            • Unit Group - Pick every unit in Zabuza_Group and do (Actions)
              • Loop - Actions
                • -------- - --------
                • Unit - Cause Zabuza_Caster to damage (Picked unit), dealing 700.00 damage of attack type Normal and damage type Normal
                • -------- - --------
            • -------- - --------
            • Unit - Add a 0.01 second Generic expiration timer to Zabuza_Dummy_1
            • -------- - --------
            • Custom script: call RemoveLocation(udg_Zabuza_Point_2)
            • -------- - --------
            • Trigger - Turn off (This trigger)
            • -------- - --------
 
Status
Not open for further replies.
Top