I have a problem with my map where you can attack your ally's. I have tried a lot of things but none of them have worked. I was wondering if any of you could help. Thanks.
<<quote 2631691>>
I have a problem with my map where you can attack your ally's. I have tried a lot of things but none of them have worked. I was wondering if any of you could help. Thanks.
<</quote>>
Events
Unit - Any Unit is attacked with Any Weapon
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
Actions
Unit - Kill (Triggering unit)
Is an example using triggers. What do you want to happen. If you want to outright prevent friendly fire then you can't do it in triggers, well, maybe you could but it would be the hard way instead of the data editor.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a problem with my map where you can attack your ally's. I have tried a lot of things but none of them have worked. I was wondering if any of you could help. Thanks.
i modify the "attack" ability and disallow targeting allies
<<quote 2631691>>
I have a problem with my map where you can attack your ally's. I have tried a lot of things but none of them have worked. I was wondering if any of you could help. Thanks.
<</quote>>
Events
Unit - Any Unit is attacked with Any Weapon
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
Actions
Unit - Kill (Triggering unit)
Is an example using triggers. What do you want to happen. If you want to outright prevent friendly fire then you can't do it in triggers, well, maybe you could but it would be the hard way instead of the data editor.