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

Alarm trap (pings enemy once approached)

Status
Not open for further replies.
Level 8
Joined
Sep 9, 2007
Messages
114
I'm working on a game that involves traps atm... and one of the traps is an alarm trap.

The alarm traps functions are to every 10-20 seconds or so to ping the map on the location of every enemy unit within 512.00 of my alarm trap... i need this to be multi-applicable... so every player can make a multitude of these.

Thanks in advance :)
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
maybe you show your trigger, or didnt u start with anything? (i mean as u said, u want to make it MUI).

Tipp: Try to use units as your traps, then pick every trap in a trigger and check if there are enemies in an area of 510 around it
 
Level 7
Joined
Sep 5, 2006
Messages
333
Shouldn't be hard
First make a dummy aura that has a custom buff, than set the range to 512 (or whatever range you want)
2. Make a trigger
event - every 10s of the game
action - pick every unit in playable map matching (matching unit has {your custom buff here}) and ping whatever...
blah...blah..blah...(whatever else you want to do)
 
Status
Not open for further replies.
Top