• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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.
 
/\ 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 :/
 
/\ 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.
 
  • 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.
Back
Top