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

A Little Help

Status
Not open for further replies.
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.
 
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:
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...
 
  • 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: https://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Back
Top