Is there any way to make it impossible for a player to kill its own units and its allies units? I've been searching for a bit but haven't found any way to accomplish this easily. I'm assuming there is a way to go into each unit's weapons (one by one..) and make some configs to not target allies, but i have a lot of units i'm using and that would take forever.
Hmm, still haven't been able to find a trigger that does this globally for all units. It looks like you have to go in each unit's weapons one by one. Before i spend hours doing that, does anyone know of any triggers that can globally solve this problem? (Good note on splash damage, probably would have forgot)
// Event: Unit - Any unit starts attacking// Condition: Player (Owner of (Attacking Unit)) is giving player (Owner of (Triggering Unit)) non-aggression == true// Actions: Unit - Order (Triggering Unit) to (Stop) (Replace Existing Orders)
This basic trigger should deal with the issue you are running into. If you have offensive abilities which can target allies as well, you will have to make it a bit more complex.
Also, you might think that in the action it would be Attacking Unit rather than Triggering Unit, but that doesn't work when I tested it which is kind of weird.
Yes, it seems like its going to be fairly complex. I'll write a letter to blizzard telling them to put a "Friendly Fire On/Off" in player properties :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there any way to make it impossible for a player to kill its own units and its allies units? I've been searching for a bit but haven't found any way to accomplish this easily. I'm assuming there is a way to go into each unit's weapons (one by one..) and make some configs to not target allies, but i have a lot of units i'm using and that would take forever.
Any ideas?
Change the weapons for all units to not be able to target allies/units. Also make sure you change any splash damage effects the same way.
@Tudentau: Go
Hmm, still haven't been able to find a trigger that does this globally for all units. It looks like you have to go in each unit's weapons one by one. Before i spend hours doing that, does anyone know of any triggers that can globally solve this problem? (Good note on splash damage, probably would have forgot)
@themusic246: Go
This basic trigger should deal with the issue you are running into. If you have offensive abilities which can target allies as well, you will have to make it a bit more complex.
Also, you might think that in the action it would be Attacking Unit rather than Triggering Unit, but that doesn't work when I tested it which is kind of weird.
@VoidPotato: Go
Yes, it seems like its going to be fairly complex. I'll write a letter to blizzard telling them to put a "Friendly Fire On/Off" in player properties :)