• 🏆 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] Help with Spellz! +rep

Status
Not open for further replies.
Level 7
Joined
Mar 28, 2009
Messages
210
!PROBLEM SOLVED!Okay im problem is that when i do this trigger it makes it go to the center of the map o_O plz help!

  • Future Death
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiple ConditionsOr - Any (Conditions) are true
            • Conditions
              • (Ability being cast) Equal to (==) Launch Long Range Hydrogen Nuke
              • (Ability being cast) Equal to (==) Launch Short Range Nuke (Neutral Hostile 1)
        • Then - Actions
          • Unit - Create 1 Nuclear ICBM for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Target point of ability being cast)
          • Set NukeUnit = (Last created unit)
          • Set NukePoint = (Target point of ability being cast)
          • Unit - Turn collision for NukeUnit Off
          • Unit - Add a ((Distance between (Position of NukeUnit) and NukePoint) / 500.00) second Generic expiration timer to NukeUnit
          • Unit - Order NukeUnit to Move To NukePoint
        • Else - Actions
Thanks!
 
Last edited:
This happens when it finds no point, meaning you give a wrong point or not good defined.
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
        • (Ability being cast) Equal to X
        • (Ability being cast) Equal to Y
  • Actions
    • Set Temp_P[1] = (Position of (Triggering unit))
    • Set Temp_P[2] = (Target point of ability being cast)
    • Unit - Create 1 Nuclear ICBM for (Owner of (Triggering unit)) at (Temp_P[1]) facing (Temp_P[2])
    • Unit - Turn collision for (Last created unit) Off
    • Unit - Add a (Distance between (Temp_P[1]) and (TempPoint[2])/500) second generic expiration timer to (Last created unit)
    • Unit - Order (Last created unit) to Move to (Temp_P[2])
    • Custom script: call RemoveLocation (udg_Temp_P[1])
    • Custom script: call RemoveLocation (udg_Temp_P[2])
 
Status
Not open for further replies.
Top