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

Ability Area Effect

Status
Not open for further replies.
Level 16
Joined
Sep 3, 2004
Messages
2,086
Ensnare is easy. Create an invisible dummy with a no-cooldown ensnare

Unit starts effect of an ability
Condition
Ability being cast equal to mass ensnare
Actions
Shift control of dummy 001 to Owner of triggering player
Move dummy 001 to position of triggering unit
Pick every unit within 500 of Target unit of ability being cast an do- Order dummy 001 to Neutral-Ensnare Picked unit
 
Level 8
Joined
Apr 3, 2004
Messages
507
That's a perfectly functional trigger, although the mechanics of unit groups and locations means that it will be pretty memory-leaky. If cast often, it may cause the game to lag and will likely cause a long garbage-collection period at the end of the map.

However, doing it with jass variable destruction and locals is substantially more difficult, so if this one works well, I'd advise you to use it.
 
Status
Not open for further replies.
Top