• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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