- Joined
- Nov 6, 2011
- Messages
- 44
-
Ball Move
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Set BallHitterDetect = (Units within 100.00 of (Position of Ball) matching (((Matching unit) is A ground unit) Equal to True))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in BallHitterDetect) Greater than or equal to 1
-
-
Then - Actions
-
Unit Group - Pick every unit in BallHitterDetect and do (Actions)
-
Loop - Actions
-
Set BallHitter = (Picked unit)
-
Set BallHitPoint = (Position of (Picked unit))
-
Set BallSpeed = 10.00
-
-
-
-
Else - Actions
-
-
If (BallSpeed Greater than 0.00) then do (Set BallSpeed = (BallSpeed - 0.25)) else do (Do nothing)
-
Unit Group - Pick every unit in BallHitterDetect and do (Actions)
-
Loop - Actions
-
Unit - Move Ball instantly to ((Position of Ball) offset by BallSpeed towards ((Angle from (Position of Ball) to (Position of BallHitter)) + 180.00) degrees)
-
-
-
-
What happens:

Excuse me for not clearing out leaks if there are any, I'm not good with them and I hope you'd provide help with fixing the leaks too if there are any.
Last edited: