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

Question about Validator

Status
Not open for further replies.
Level 2
Joined
Sep 28, 2009
Messages
12
Ok, so I am trying to make a validator that checks the height of a unit. This is done with a validator of type 'Unit Compare Field' with the 'Validator - Field' set to "Height." That part works. I suppose my issue would be universal to checking any validator value, really.

However, it only works for comparing the height field to a set value in the 'Validator - Value' field. If I want to check if the height field is greater than 0, I can just write 0 as the value. But I want to check if the height is greater than that of another unit or an arithmetic result. Is there a way to write code into the 'Validator - Value' field or compare it to another unit with the 'Validator - Other Unit' field? Any help appreciated!
 
Status
Not open for further replies.
Top