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

Teleport select units

Status
Not open for further replies.
Level 5
Joined
Jan 15, 2018
Messages
128
Hello, cant seem to get this ability working. Anything you see that im doing wrong?

  • Make Mordor Great Again
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sauron's Will
    • Actions
      • Set VariableSet Swill_casterpoint = (Position of (Triggering unit))
      • Set VariableSet SwillTargetpoint = (Target point of ability being cast)
      • Set VariableSet SWill_ug = (Units within 1000.00 of Swill_casterpoint matching ((((Matching unit) belongs to an ally of Player 21 (Coal).) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Unit-type of (Matching unit)) Equal to Nazgûl) and ((Unit-type of (Matching Unit) Equal to Khamul)
      • Unit - Move (Triggering unit) instantly to SwillTargetpoint
      • Unit Group - Pick every unit in SWill_ug and do (Unit - Move (Picked unit) instantly to SwillTargetpoint)
      • Custom script: call RemoveLocation(udg_Swill_casterpoint)
      • Custom script: call RemoveLocation(udg_SwillTargetpoint)
      • Custom script: call DestroyGroup(udg_SWill_ug)
 
Status
Not open for further replies.
Top