• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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