By not disabling to do so, usually. If you issue a specific order to attack your allies, most weapons should deal damage, if not specifically designed otherwise.
If you are asking, how to auto-attack teammates, that is more of an issue with the Attack ability; in this case, I recommend using a modified version of it.
I need a to make a weapon that can destroy units of the type 'structure' but only ones that belong the the player that attacks. Even though I check of all the boxes in the scanfilters, it cannot attack own units.
How do I make a weapon capable of killing your own units and structures?
By not disabling to do so, usually. If you issue a specific order to attack your allies, most weapons should deal damage, if not specifically designed otherwise.
If you are asking, how to auto-attack teammates, that is more of an issue with the Attack ability; in this case, I recommend using a modified version of it.
@Kueken531: Go
I need a to make a weapon that can destroy units of the type 'structure' but only ones that belong the the player that attacks. Even though I check of all the boxes in the scanfilters, it cannot attack own units.
Have a switch effect used directly by the weapon, one branch if the target player structures, the other does whatever.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg