So I am making a simple trigger where a unit enters a region, which causes all ground units in another region to move instantly to a third region.
Here's what I have for the action:
Unit Group - Pick every unit in (Units in P1 Zone <gen> matching (((Picked unit) is A ground unit) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of P1TL Positioner <gen>))
There are both ground units and structures in the region I am picking the units from, but I only want to pick the ground units. However, this trigger does nothing. However, when I change (((Picked unit) is a ground unit) Equal to False)), the trigger moves all the units, including the buildings, to the target region. I have checked all my unit's classifications. The ground units are ground and the structure are structure. When I try to move just the structures (to test it), nothing happens either.
What I am thinking is wrong is the "matching (((Picked unit)" is messing it up because no unit is picked yet. But I cannot seem to find the correct function to make the matching check (unit is a ground unit) or something like that.
Any help would be appreciated.
Here's what I have for the action:
Unit Group - Pick every unit in (Units in P1 Zone <gen> matching (((Picked unit) is A ground unit) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of P1TL Positioner <gen>))
There are both ground units and structures in the region I am picking the units from, but I only want to pick the ground units. However, this trigger does nothing. However, when I change (((Picked unit) is a ground unit) Equal to False)), the trigger moves all the units, including the buildings, to the target region. I have checked all my unit's classifications. The ground units are ground and the structure are structure. When I try to move just the structures (to test it), nothing happens either.
What I am thinking is wrong is the "matching (((Picked unit)" is messing it up because no unit is picked yet. But I cannot seem to find the correct function to make the matching check (unit is a ground unit) or something like that.
Any help would be appreciated.