polo2005
Wana start playing LoL? http://tinyurl.com/369as27
- Reaction score
- 97
how should this look like?
i want to detect all units in front of my unit, but i'm pretty bad about facing
z x
O> x
z x
O= my unit
> facing
x= enemies that should be detected
z= enemies that shouldn't be detected
i want to detect all units in front of my unit, but i'm pretty bad about facing
z x
O> x
z x
O= my unit
> facing
x= enemies that should be detected
z= enemies that shouldn't be detected
Code:
Actions
Custom script: set bj_wantDestroyGroup=true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions [B][U]how should the condition things look like?[/U][/B]
Then - Actions
Else - Actions