• 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] Hight/Slope

Status
Not open for further replies.
Level 21
Joined
Aug 21, 2005
Messages
3,699
No, it gets the height of a certain point. Then do the same for your second point and compare the difference...

Something like this:

  • Blabla
    • Custom script: set udg_RealVar1 = GetLocationZ(udg_point1)
    • Custom script: set udg_RealVar2 = GetLocationZ(udg_point2)
    • Set RealVar3 = RealVar1 - RealVar2
    • if RealVar3 > 100 or < -100 then do stuff
Note that if the height of point 2 is greater than point 1, RealVar3 will be negative, so you'll need to check whether the result is > 100 OR < -100
 
Last edited:
Status
Not open for further replies.
Top