Warcraft III resources & community, 2003–2006 · archived

Selection issues

3 posts
#1

Selection issues

i am having trouble selecting a random unit thats an enemy of the caster, and so it can't select the caster itself.
Here is what i have:

Set Random_Unit_1_C = (Random unit from (Units within 600.00 of (Position of Caster_C) matching (((Random_Unit_1_C is A structure) Equal to False) and (((Random_Unit_1_C belongs to an enemy of (Owner of Caster_C)) Equal to True) and ((Random_Unit_1_C is in (Units owned by (Owner of Caster_C)) equal to False)


but for some reason it still can select the caster.

HELP PLEASE!!!
#2
Set Random_Unit_1_C = (Random unit from (Units within 600.00 of (Position of Caster_C) matching (((Matching Unit is A structure) Equal to False) and (((Matching Unit belongs to an enemy of (Owner of Caster_C)) Equal to True) and ((Matching Unit is in (Units owned by (Owner of Caster_C)) equal to False)

What I've done is changed all the entries for Random_Unit_1_C to Matching Unit except for the Set Random_Unit_1_C. This should work! :wink:
#3
thanks, that works perfectly.