• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] Bouncing Ball?

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2007
Messages
261
My triggers for a game are not working properly...
When i cast the ability the ball goes to a random spot on the map

  • Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Death Coil
    • Actions
      • Set PlayerPosition = (Position of (Triggering unit))
      • Set Target = (Target unit of ability being cast)
      • Set Caster = (Triggering unit)
      • Set Angle = (Angle from PlayerPosition to (Position of Target))
      • Trigger - Turn on Death Ball Move <gen>
      • Wait 3.00 seconds
      • Trigger - Turn off Death Ball Move <gen>
      • Set Caster = No unit
      • Set Target = No unit
      • Set PlayerPosition = (Center of (Playable map area))
  • Death Ball Move
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Move Target instantly to (PlayerPosition offset by ((Distance between PlayerPosition and (Position of Target)) + 7.00) towards Angle degrees), facing (Angle from PlayerPosition to (Position of Target)) degrees
  • Death Ball Bounce
    • Events
      • Unit - A unit enters Bottom Wall <gen>
      • Unit - A unit enters Left Wall <gen>
      • Unit - A unit enters Right Wall <gen>
      • Unit - A unit enters Top WALL <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Death Ball
    • Actions
      • Set Angle = ((Angle from PlayerPosition to (Position of Target)) + 90.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Angle Greater than or equal to 360.00
        • Then - Actions
          • Set Angle = (Angle - 360.00)
        • Else - Actions
          • Do nothing
      • Trigger - Run Death Ball Move <gen> (checking conditions)
Any Help?
 
Status
Not open for further replies.
Top