How can you knockback units in AoE? {using GUI/triggers}

Status
Not open for further replies.
Level 8
Joined
Aug 1, 2008
Messages
420
How? Ive seen it done before loads but i cant figure it out. Would it have to be something to do with putting them in a unit group, picking every unit in that and moving them back every 0.04 seconds. is that possible?
 
Level 8
Joined
Aug 1, 2008
Messages
420
umm
wut

lol seriously, what? >.< you talk like im a pro at this!

doesnt picking units in a range of something leak aswell?
 
Level 11
Joined
Feb 22, 2006
Messages
752
JASS:
scope AOEKnockback initializer init
globals
    private group g = CreateGroup()
    private boolexpr filterExpr
endglobals

private function filter takes nothing returns boolean
    local unit u = GetFilterUnit()

    // call KnockbackStart() or w/e here.
    
    return false
endfunction

function DoAOEKnockback takes real x, real y, real radius returns nothing
    call GroupEnumUnitsInRange(g, x, y, radius, filterExpr)
endfunction

private function init takes nothing returns nothing
    set filterExpr = Condition(function filter)
endfunction
endscope
 
Level 11
Joined
Jul 28, 2007
Messages
920
Do this:


JASS:
scupa unit me unit
globalo mucho !!!
ja biti pička
    lol helicopter lol

start new function
end old function and start new function again
knock...
who is it ?
lol

endfunction

end function 

function pls end

haha

If you wont solve your problem, I will help you and I WILL, yes I will solve your problem, rofl. I feel so stoned right now xD .
 
Level 8
Joined
Nov 9, 2008
Messages
502
How? Ive seen it done before loads but i cant figure it out. Would it have to be something to do with putting them in a unit group, picking every unit in that and moving them back every 0.04 seconds. is that possible?

Yes ^^
Now just write it down.
 

Rmx

Rmx

Level 19
Joined
Aug 27, 2007
Messages
1,164
Status
Not open for further replies.
Top