PDA

View Full Version : [Mapping] How to make a neutral ranged unit\hero to shoot a target


Sin'dorei300
03-02-2012, 02:08 PM
1. Make a custom unit named ''target'', select the archery target model, set it's HP to 100000 and HP regeneration to 1000, remove it's abilities, make it to cannot attack and set it's movement speed to 0. Also, set it's scale to 0.70 .

2. Place the ''target'' unit in your map and a ranged unit\hero front of the target. Don't forget to make the target and the ranged unit neutral passive!

3. Open the trigger editor. Create a new trigger named ''target''. Create an event, and select the ''Time - Time Elapsed'' event type and set the elapsed time to 0.00. Then, create an action, and select the ''Unit - Issue Order Targeting A Unit'' action type. Select the ranged unit(archer) to attack the target, as shown in the picture and then press OK.

4. Now it's finished! Test ingame! :thumbs_up:

PurgeandFire
03-06-2012, 03:46 AM
You should set the target's hit points to something really high, like 100000. If it is just 220, then in certain maps a unit can one-shot the target before the hit-points regenerate.

PurgeandFire
07-10-2012, 09:53 PM
I think it is a tad too simple. Pretty much make a dummy and order the attack.

I'll graveyard this, but thanks for the contribution anyway. :)