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

How do I make GUI sliding trigger?

Status
Not open for further replies.
Level 1
Joined
Mar 21, 2009
Messages
2
As the title says, I need to know how to make a sliding trigger. Can someone give me a simple example?
 
Level 4
Joined
Oct 29, 2008
Messages
65
It's really simple.

  • Events
    • Time - Every 0.10 seconds of game time
  • Conditions
  • Actions
  • Set Unit = <UNIT>
  • Set Point = (Position of (Unit))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Terrain type at Point)) Equal to <TERRAIN>
      • Then - Actions
        • Unit - Move Unit instantly to (Point offset by <DISTANCE> towards (Facing of (Unit)) degrees)
      • Else - Actions
        • Do nothing
The items in brackets are for you to decide. But yeah, I forgot the optimal numbers, but play around. Try not to make the Event timer too low to reduce lag.
 
Status
Not open for further replies.
Top