G
Goodspeed
Guest
Code:
Dust Demon
Events
Unit - A unit Spawns a summoned unit
Conditions
Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Summoned unit))) and do (Actions)
Loop - Actions
If ((Owner of (Picked unit)) Not equal to (Owner of (Summoned unit))) then do (Unit - Move (Picked unit) instantly to ((Position of (Summoned unit)) offset by 20.00 towards (Angle from (Position of (Picked unit)) to (Position of (Summoned unit))) degrees)) else do (Do nothing)
Wait 0.01 seconds
If ((Owner of (Picked unit)) Not equal to (Owner of (Summoned unit))) then do (Unit - Move (Picked unit) instantly to ((Position of (Summoned unit)) offset by 20.00 towards (Angle from (Position of (Picked unit)) to (Position of (Summoned unit))) degrees)) else do (Do nothing)
Wait 0.01 seconds
If ((Owner of (Picked unit)) Not equal to (Owner of (Summoned unit))) then do (Unit - Move (Picked unit) instantly to ((Position of (Summoned unit)) offset by 20.00 towards (Angle from (Position of (Picked unit)) to (Position of (Summoned unit))) degrees)) else do (Do nothing)
Wait 0.01 seconds
If ((Owner of (Picked unit)) Not equal to (Owner of (Summoned unit))) then do (Unit - Move (Picked unit) instantly to ((Position of (Summoned unit)) offset by 20.00 towards (Angle from (Position of (Picked unit)) to (Position of (Summoned unit))) degrees)) else do (Do nothing)
Wait 0.01 seconds
If ((Owner of (Picked unit)) Not equal to (Owner of (Summoned unit))) then do (Unit - Move (Picked unit) instantly to ((Position of (Summoned unit)) offset by 20.00 towards (Angle from (Position of (Picked unit)) to (Position of (Summoned unit))) degrees)) else do (Do nothing)
Repeat Repeat Repeat Repeat, because I don't know how to loop this and quit it in a proper guage of time, because I'm retarded..., anyways,
Oh also, I'd like to create a condition that says "Summoned Unit equal to Dust Devil," so that I can make a few wise changes and fix certain issues that might come up. I couldn't find a good base for this condition, I kind of found "Unit type - Summoned Unit equal to Unit type - Dust Devil," but it's so shady idk. I think that was a Boolean, any better suggestion for this sort of condition? Any help'd be awesome, thanks guys,
`Goodspeed, :nuts:


