• 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] Keep Rotating...

Status
Not open for further replies.
Level 13
Joined
Apr 15, 2008
Messages
854
I want to make a Hero choose System but I this trigger doesn't really works...
Trigger:
  • Rotate
    • Events
      • Time - Every 4 seconds.
    • Actions
      • Unit - Make Unit face point 0.00 over 1.00 seconds
      • Wait - Wait 1.00 seconds
      • Unit - Make Unit face point 90.00 over 1.00 seconds
      • Wait - Wait 1.00 seconds
      • Unit - Make Unit face point 180.00 over 1.00 seconds
      • Wait - Wait 1.00 seconds
      • Unit - Make Unit face point 270.00 over 1.00 seconds
      • Wait - Wait 1.00 seconds
It doesn't goes smooth and doesn't really face the angle I said.
I also tried it with units but that don't works neither...

Please help:huh:

For those people who likes Reputation, Yes I always give +rep to people who help me!
 
Level 11
Joined
Aug 15, 2008
Messages
720
I better suggest with unit groups...
  • Any Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set HeroSelectionGroup = (Units in Hero Selection Location <gen>)
  • Rotate
    • Events
      • Time - Every 2.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in HeroSelectionGroup and do (Unit - Make (Picked unit) face 0.00 over 1.00 seconds)
      • Wait 0.70 seconds
      • Unit Group - Pick every unit in HeroSelectionGroup and do (Unit - Make (Picked unit) face 120.00 over 1.00 seconds)
      • Wait 0.70 seconds
      • Unit Group - Pick every unit in HeroSelectionGroup and do (Unit - Make (Picked unit) face 240.00 over 1.00 seconds)
      • Wait 0.70 seconds
  • When Hero is selected and Ready to spawn
    • Events
      • Unit - A unit leaves Hero Selection Location <gen>
    • Conditions
    • Actions
      • Unit Group - Remove (Triggering unit) from HeroSelectionGroup
 
Last edited:
Level 9
Joined
Jan 17, 2009
Messages
372
You forgot to remove those leaks boy!
  • Custom script: call DestroyGroup(udg_HeroSelectionGroup)
Also isnt this way easier? I always try to aviod waits :D!!
  • Rotating Trig
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set HeroSelectionGroup = (Units in Hero Selection Location <gen>)
      • Unit Group - Pick every unit in (Units in (HeroSelectionGroup)) and do (Unit - Make (Picked unit) face ((Facing of (Picked unit)) + 90.00) over 1.20 seconds)
      • Custom script: call DestroyGroup(udg_HeroSelectionGroup)
 
You forgot to remove those leaks boy!
  • Custom script: call DestroyGroup(udg_HeroSelectionGroup)
Also isnt this way easier? I always try to aviod waits :D!!
  • Rotating Trig
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set HeroSelectionGroup = (Units in Hero Selection Location <gen>)
      • Unit Group - Pick every unit in (Units in (HeroSelectionGroup)) and do (Unit - Make (Picked unit) face ((Facing of (Picked unit)) + 90.00) over 1.20 seconds)
      • Custom script: call DestroyGroup(udg_HeroSelectionGroup)

yes, this is better and easier.
 
Status
Not open for further replies.
Top