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

[Trigger] Drowning

Status
Not open for further replies.
Level 6
Joined
Oct 11, 2005
Messages
142
Is there any way to have units rapidly lose Hp if they enter water? I have a lot of spells that move units to random places and want to kill any units that accidentally go into the water that you normally can't get to by walking.
 
Level 3
Joined
May 28, 2007
Messages
57
It can be done in jass u just need to check the terrain type if it's walkable or not and if not just use a trigger to slowly remove it's life, but im not to sure what would happen if the unit does go into example: Deep water and a unit without flying or swim. but will check up on that.
 
Level 5
Joined
May 2, 2007
Messages
141
Create a spell based of the 'Perminent Immolation' skill, call it drowning, change it to target self and then play around with the damage settings.

Then, create regions where ever theres water, call it Water 1, Water 2 and soon.

Then create a trigger called drown or whatever ya wanna call it. . . have it read when a unit enters the regions, then add the skill drown to the unit.

Then, I'm not sure about this part, remove the the skill upon death. . . if that don't work on Heros, then remove it @ revive
 
Status
Not open for further replies.
Top