I need an idea on how to fix this custom spell of mine

thevoden

New Member
Reaction score
5
I created a unit through the object editor and changed its graphics as a spell. I gave it locust. I have a trigger that whenever a hero casts a spell, a dummy unit will be created that is visible that tricks players that it is a missle but it is just a unit.

The problem comes into play when the dummy unit missle targets another unit and follows it, when the enemy becomes out of range of the hero the missle just sits there being dumb. Again you can pretty much translate it to having your own unit follow an enemy unit, but when the enemy unit becomes out of range ur unit cannot attack the enemy since it doesn't see it.

I hope that makes sense. How do I fix this?
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Well what are you trying to accomplish?

Are you wanting your dummy missile to hit the unit, or just follow it? If you want him to follow, try ordering a movement order.

Usually dummy missiles are moved using a slide trigger.
 

thevoden

New Member
Reaction score
5
well basically my dummy missle will try to attack the target unit. But the problem comes when the dummy missle doesn't "see" the unit any more. It just stops and sits \there doing nothing.

How might one make a MUI slide trigger for a missle dummy?
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Option 1. Can't you using a periodic trigger that check position of targeted unit and order dummy to move to that point?
Option 2. Order the dummy to cast faerie fire on targeted unit and order it to attack the unit. Then the dummy will gain vision of that unit, but caster unit will also see it, so you can create dummy for another player, maybe NPC?
 

WilliamPa

Active Member
Reaction score
51
Just create dummy unit at position of casting unit, set it's damage to 0 and ammo animation to the spell. Then it looks like it shoots the spell, but it's really an attack which does no dmg ^^

Draph, i readed his question but why the ammo needs to be an unit? A real ammo works easier and better.
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Uh.. Have you readed her/his question? Or is it me who just got it wrong..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top