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

[General] Is there a way?

Status
Not open for further replies.
Level 2
Joined
Dec 26, 2019
Messages
8
I am working on a maze map and I've notice some triggers have become easier to work with and so I was wondering is there a way to have the event be something like "unit comes within 50 of unit((any unit owned by player (____))" I can't seem to find a way around it, I attempted to work around it with variables but no progress there.

Perhaps there is just a simpler way to trigger the collision deaths?

Thank you for your time!
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
No, there is only the ‘specific unit’ version of that event. You can, however, pick all units owned by that player, loop through them, and dynamically add an event for that unit to the appropriate trigger. I presume all these hazard units are permanent so you won’t need to do that again?

The other way is to periodically pick all units owned by that player and check in a radius around each unit.
 
Status
Not open for further replies.
Top