I don't get it, I've been trying for hours to make that thing work,. I want through triggers to order two selected of different type to merge. Here is a test map, as you can see by selecting 2 Templars and commandingf them to Merge it works, by selecting the two other types with custom made Merge ability and Order them, to merge - it won't work. But ofc if you manually click them to merge they will merge... but I need this as order command through triggers Why doesn't it work? Can any1 take a look.
The problem is in the units it seems - 2 HTs with the custom ability merge when trigger ordered to do so. It seems Triggers accept only units of the same type to run the command e.g 2 custom units (While manually you can merge the different types). How to make the order work if two different units?
Your code orders all templars twice.
Your code orders all SCVs once and all Mules once.
Your order command filters for units of a specific type. That's why it's not working for you.
Just put all units you want to order in a unit group (local variable) and order the unit group. Works 100%.
Unit Group - Pick each unit in (Any units in Region 002 owned by player 1 matching Excluded: Structure, Resource (Raw), Resource (Harvestable), Destructible, Item, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit Group - Add (Picked unit) to TwoUnitsBeingMerged
Unit Selection - Deselect all units for player 1
Unit Selection - Select TwoUnitsBeingMerged for player 1
Unit - Order all units in TwoUnitsBeingMerged to ( Custom Merge - Selection) (Replace Existing Orders)
I don't get it, I've been trying for hours to make that thing work,. I want through triggers to order two selected of different type to merge. Here is a test map, as you can see by selecting 2 Templars and commandingf them to Merge it works, by selecting the two other types with custom made Merge ability and Order them, to merge - it won't work. But ofc if you manually click them to merge they will merge... but I need this as order command through triggers Why doesn't it work? Can any1 take a look.
The problem is in the units it seems - 2 HTs with the custom ability merge when trigger ordered to do so. It seems Triggers accept only units of the same type to run the command e.g 2 custom units (While manually you can merge the different types). How to make the order work if two different units?
Your code orders all templars twice.
Your code orders all SCVs once and all Mules once.
Your order command filters for units of a specific type. That's why it's not working for you.
Just put all units you want to order in a unit group (local variable) and order the unit group. Works 100%.
@Ahli634: Go
Oh lol so lame of me, thanks. Yeah I did like:
Unit Group - Pick each unit in (Any units in Region 002 owned by player 1 matching Excluded: Structure, Resource (Raw), Resource (Harvestable), Destructible, Item, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit Group - Add (Picked unit) to TwoUnitsBeingMerged
Unit Selection - Deselect all units for player 1
Unit Selection - Select TwoUnitsBeingMerged for player 1
Unit - Order all units in TwoUnitsBeingMerged to ( Custom Merge - Selection) (Replace Existing Orders)