• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Locust

Status
Not open for further replies.
Level 8
Joined
Aug 4, 2008
Messages
279
I have made a trigger like this:

A unit comes within 80 range of Hero <000>

Unit type of Triggering unit not equal to (Heroes)

Kill Hero <000>

(PROBLEM : If the triggering unit have locust, the trigger doesnt happens, and if I remove the locust, the units lost control and start running away)

You can try to help me in two ways :
Or give me something that kills instantly when a unit gets near (Escape example) **CANT BE IMMOLATION**
Or fix that please=)
thanks in advance
 
Level 17
Joined
Jun 28, 2008
Messages
776
Yes, to pick units of type will pick the unit with locust.

You could pick all units of the desired type, and then check the range between them and your hero. Then if the range is less then 80, kill the picked unit.

Or you could create an ability of the permanent immolation ans set its targets allowed to ancient and make the unit with the locust a unit with unit type ancient.
This will allow you to just damage that unit type.

Hope it helps
 
Status
Not open for further replies.
Top