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

Water Damages Hero

Status
Not open for further replies.
Level 2
Joined
Nov 9, 2006
Messages
6
Hello

I request a Script for my hero (Vampire) take damage by walkin on walkable Water, and if possible, during the Day.

Thank you ! :)
 
Level 9
Joined
Jul 27, 2006
Messages
652
hmm i think i can help...
theres no function ( that i know of ) that cheaks if your walking on water.... but heres a way to do it...

Use the same terrain for water and nothing else...
e.g if you want to place shallow water make sure you place it on the terrain that your using...
then use the condition boolean terrain comparison...
e.g
Event -
Every 1 second (editable)
Condition -
Boolean terrin at point position of (Vampire)
Action-
Damage unit Vampire

Then for day detection add these conditions
And...
Real(interger) time of day > 6
Real(interger) time of day < end of day ( i think 18:00)

Hope that helps
 
Status
Not open for further replies.
Top