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

Energy Drain Capture Trigger

Status
Not open for further replies.
Level 1
Joined
Apr 10, 2019
Messages
1
Im building a capture point system in my map based around different nodes represented by a building with energy, when units move near the point energy drains and when depleted the node turns to that player.
I need help tying to add energy drain to units near the nodes, and the distance for the drain to the node

I should mention im very new to trigger editing and such
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
What if there are multiple competing players with units near the node at the same time? Basically what should happen if the node is in a "competed" state?

The basic principle would be to use a unit enters distance of a unit event, or the unit enters region event. This would be used to determine when draining begins and then a periodic trigger manages the actual energy draining as well as monitoring the units in case they move to far away or the drain was completed.
 
Status
Not open for further replies.
Top