In my mod, I made it so that Spider Mines can be controlled and built in the factory.
It works fine except that I can't add them to the army select button (F2) although I checked the "army select" tag in the unit tab.
The unit count is correct and takes into account the Spider Mines but if I press F2, they are not selected.
The same thing happens if I select several units at the same time by holding down the left click, I can select all the mines, but as soon as another unit is in the selection, then the mines are not selected.
If I create a unit group and select that group, it works as expected, it selects both the mines and the other units and I can control all the units in the group at the same time.
Does anyone has any idea how to make this work like any other unit.
Hello everyone,
In my mod, I made it so that Spider Mines can be controlled and built in the factory.
It works fine except that I can't add them to the army select button (F2) although I checked the "army select" tag in the unit tab.
The unit count is correct and takes into account the Spider Mines but if I press F2, they are not selected.
The same thing happens if I select several units at the same time by holding down the left click, I can select all the mines, but as soon as another unit is in the selection, then the mines are not selected.
If I create a unit group and select that group, it works as expected, it selects both the mines and the other units and I can control all the units in the group at the same time.
Does anyone has any idea how to make this work like any other unit.
Hello,
Can you go to the Model tab, look for your Spider Mines model and look for the field "Selection Layer" ?
Usually, the layer for structures is 2 and common units 0.
I had a similar issue where my building was not selected with others but being selected with army units, which should not happen.
You may have the same problem.
To learn more :
https://sc2mapster.fandom.com/wiki/Data/Models/Generic#Art:_Selection_Layer
Have a nice day.
To get it to work in for F2 you have to specify it's part of the army units.
Actors > Actor > Actor Alias > _Unit / _Selectable