• 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.

Custom Attack

Status
Not open for further replies.
Level 13
Joined
Apr 15, 2008
Messages
1,063
If you want it to launch when player left-clicks somewhere, then create a trigger that checks left clicks and launch an effect when it happens.

Before you launch the missile, check wall collision for the entire path and end the missile movement there (I assume walls don't move, so checking them at any time would give same result).
Then, just add buff to the missile unit, that periodically checks whether a unit is around and if it is, then it damages the unit and destroys itself.
 
Level 17
Joined
Jun 28, 2008
Messages
776
If you want it to launch when player left-clicks somewhere, then create a trigger that checks left clicks and launch an effect when it happens.

Before you launch the missile, check wall collision for the entire path and end the missile movement there (I assume walls don't move, so checking them at any time would give same result).
Then, just add buff to the missile unit, that periodically checks whether a unit is around and if it is, then it damages the unit and destroys itself.

I have absolutely no idea how to do that(The launch effect) I can add the validators and buffs to the missile, but how do I order the unit to launch the missile and not auto attack?
 
Level 17
Joined
Jun 28, 2008
Messages
776
Thanks allot, will try it now

Edit

@Mort

I tried working with the validators and buffs, but I cant figure it out. If possible, could you please explain to me how to add the validators and buffs to the effect, if its not to much trouble to ask for, or just direct me to a tutorial.

Thanks in advance

Xiliger
 
Last edited:
Status
Not open for further replies.
Top