- Joined
- Aug 8, 2004
- Messages
- 562
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!!!
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!!!