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

Moving a dummy with the caster

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
How to make the unit move as the caster moves ? Like in the skill Eye of The Storm (DotA). A dark cloud above the hero (is a dummy) is created, and wherever he(ro) moves, it is always above him.
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
/\ I tried this but it won't work. I was looking at the spells section, they did it with custom script. Thx anyway everybody, I'll try do this from that spell, thought it is not approved :/
 
Level 22
Joined
Feb 6, 2014
Messages
2,466
/\ I tried this but it won't work. I was looking at the spells section, they did it with custom script. Thx anyway everybody, I'll try do this from that spell, thought it is not approved :/

You can use arrays having an index of the array corresponding to the player number of the triggering unit. For example, unit eyeStorm[1] which belongs to player 1 will be instantly moved to razor[1]. Use periodic trigger and add all eyeStorm units to a certain unit group where the periodic trigger consist of Pick every unit in eyeStormGroup.
 
Level 14
Joined
Nov 17, 2010
Messages
1,264
  • Untitled Trigger 001
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set TempLoc = (Position of Your_Unit)
      • Unit - Move TempEffectDummy instantly to TempLoc
      • Custom script: call RemoveLocation (udg_TempLoc)
Something like this?
 
Status
Not open for further replies.
Top