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

A Little Help

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
Making the knockback circle around the caster is quite easy if you use an existing knockback system.

In the looping trigger/function, modify the angle during each loop. Increase it by 3 degrees for example during every loop. Use radians if the systems uses those. Keep track by how much you have modified the angle, when you have modified it by 360 degrees or more (2*Pi), then make the unit go towards the original angle.
 
Level 6
Joined
Nov 15, 2010
Messages
112
i mean without exising kb

u mean

[TRIGGER=]Test
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by 2.00 towards 3.00 degrees)
[/TRIGGER]

just testing
 
Last edited by a moderator:
Level 6
Joined
Nov 15, 2010
Messages
112
Yeah but don't change the offset, only the angle.

if i make it like this:
  • Testi
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Test
    • Actions
      • Set d = 0.00
      • Trigger - Turn on Test <gen>
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • d Equal to (d + 360.00)
        • Then - Actions
          • Trigger - Turn off Test <gen>
        • Else - Actions
  • Test
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by (0.00 - d) towards d degrees)
      • Set d = (d + 3.00)
how i wanna stop it???
i already initially off the test...
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Testi
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Test
    • Actions
      • Set x = some angle
      • Set d = 0.00
  • Test
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • If d < 360 then
        • Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by 100 towards x+d degrees)
        • Set d = (d + 3.00)
      • else
        • Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by 100 towards x degrees)
        • turn off this trigger
      • endif
Remember to clear leaks: http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Top