• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Left mouse button (attack/move)

Level 14
Joined
Oct 28, 2019
Messages
536
  • Attack
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • (Triggering unit) Not equal to Archmage 0084 <gen>
    • Actions
      • Unit - Order HeroVariableP1 to Attack Once (Triggering unit)
      • Trigger - Turn off StopAttack <gen>
      • Wait 0.50 seconds (heres the problem)
      • Trigger - Turn on StopAttack <gen>
  • Move
    • Events
      • Player - Player 1 (Red) issues Mouse Down event
    • Conditions
      • (Trigger Mouse Button) Equal to Left Mouse Button
    • Actions
      • Set VariableSet MouseClickP1 = (Mouse Position for Triggered Mouse Event)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units within 50.00 of MouseClickP1.)) Less than or equal to 0
        • Then - Actions
          • Wait 0.05 seconds
          • Unit - Order HeroVariableP1 to Move To MouseClickP1
        • Else - Actions
Hi everyone! I'm trying to create mouse events for move/attack using the native GUI editor. It's almost done — is there any way to improve this?
 
Back
Top