• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Will this work???

Status
Not open for further replies.
Level 14
Joined
Jan 5, 2009
Messages
1,126
This is my pulling trigger:
  • Gravity Well
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set Gavitiy_well = (Units within 1900.00 of Centerloc matching ((Owner of (Matching unit)) Equal to Player 1 (Red)))
      • Unit Group - Pick every unit in Gavitiy_well and do (Actions)
        • Loop - Actions
          • Set Temppointg = (Position of (Picked unit))
          • Set Angle = (Angle from Temppointg to Centerloc)
          • Set Pull = (Temppointg offset by 20.00 towards Angle degrees)
          • Unit - Move (Picked unit) instantly to Pull
      • Custom script: call RemoveLocation( udg_Temppointg )
      • Custom script: call RemoveLocation( udg_Pull )
Will it work???
It only work when there was one unit left and that unit was dead...
 
  • Gravity Well
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set Gavitiy_well = (Units within 1900.00 of Centerloc matching ((Owner of (Matching unit)) Equal to Player 1 (Red)))
      • Unit Group - Pick every unit in Gavitiy_well and do (Actions)
        • Loop - Actions
          • Set Temppointg = (Position of (Picked unit))
          • Set Angle = (Angle from Temppointg to Centerloc)
          • Set Pull = (Temppointg offset by 20.00 towards Angle degrees)
          • Unit - Move (Picked unit) instantly to Pull
          • Custom script: call RemoveLocation( udg_Temppointg )
          • Custom script: call RemoveLocation( udg_Pull )
What is Centerloc? I think you should set that variable in this trigger.
 
Thanks maker! I just had a thought, CenterLoc is Variable! But i only set it in another trigger! +rep for you!
Wll this work
  • Gravity Well
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set Centerloc2 = (Center of Center1 <gen>)
      • Set Gavitiy_well = (Units within 1900.00 of Centerloc matching ((Owner of (Matching unit)) Equal to Player 1 (Red)))
      • Unit Group - Pick every unit in Gavitiy_well and do (Actions)
        • Loop - Actions
          • Set Temppointg = (Position of (Picked unit))
          • Set Angle = (Angle from Temppointg to Centerloc2)
          • Set Pull = (Temppointg offset by 10.00 towards Angle degrees)
          • Unit - Move (Picked unit) instantly to Pull
      • Custom script: call RemoveLocation( udg_Temppointg )
      • Custom script: call RemoveLocation( udg_Pull )
      • Custom script: call RemoveLocation( udg_Centerloc2 )
 
  • Gravity Well
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set Centerloc2 = (Center of Center1 <gen>)
      • Set Gavitiy_well = (Units within 1900.00 of Centerloc matching ((Owner of (Matching unit)) Equal to Player 1 (Red)))
      • Unit Group - Pick every unit in Gavitiy_well and do (Actions)
        • Loop - Actions
          • Set Temppointg = (Position of (Picked unit))
          • Set Angle = (Angle from Temppointg to Centerloc2)
          • Set Pull = (Temppointg offset by 10.00 towards Angle degrees)
          • Unit - Move (Picked unit) instantly to Pull
          • Custom script: call RemoveLocation( udg_Temppointg )
          • Custom script: call RemoveLocation( udg_Pull )
      • Custom script: call RemoveLocation( udg_Centerloc2 )
      • Custom script: call DestroyGroup(udg_Gravitiy_well)
Depending on what you're trying to do, you don't necessarily have to set Centerloc2 in this trigger, if you only use it for this trigger.
 
Status
Not open for further replies.
Back
Top