• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Teleport ability

Status
Not open for further replies.
Level 9
Joined
Jun 10, 2013
Messages
473
Hey I have this teleport ability which teleport units to any location on the map how ever I want a requirement where the location must be visible in order to teleport. but I have no idea how to do so :/

Any help would be much appreciated :D

  • Teleport
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Teleport
    • Actions
      • Set TempPoint = (Position of (Casting unit))
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 500.00 of TempPoint matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
        • Loop - Actions
          • Set TempPoint2 = (Position of (Picked unit))
          • Special Effect - Create a special effect at TempPoint2 using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempPoint2)
          • Set TempPoint2 = (Target point of ability being cast)
          • Unit - Move (Picked unit) instantly to TempPoint2
          • Custom script: call RemoveLocation(udg_TempPoint2)
          • Set TempPoint2 = (Position of (Picked unit))
          • Special Effect - Create a special effect at TempPoint2 using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Level 21
Joined
Nov 4, 2013
Messages
2,016
I would also like to tell you that you're picking enemy units and dead units as well! I don't know if that's intentional, if not, you shall add conditions other than "Matching unit is not a structure" which are "((Matching unit) is alive Equal to True" and "Owner of (Matching unit) Equal to (Owner of (Triggering unit))". That will teleport units owned by the caster that are alive.
 
Status
Not open for further replies.
Top