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

Help in distance measuring

Status
Not open for further replies.
Level 25
Joined
Feb 9, 2009
Messages
1,801
upload_2020-11-9_12-47-17.png


And it would look something like this:
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set VariableSet X = 500.00
      • Set VariableSet Point[1] = (Position of (Triggering unit))
      • Set VariableSet Point[2] = (Position of (Picked unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between Point[1] and Point[2]) Greater than X
        • Then - Actions
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Point[1])
      • Custom script: call RemoveLocation(udg_Point[2])
 
Status
Not open for further replies.
Top