i already have a grenade script but i dont know how to make it to affect only hostile targets
3 Likes
If you’re using a for all units
loop in an entity-script on the grenade projectile type to damage targets, you can add if ((owner of (source unit of (this entity))) is hostile to (owner of (selected unit))) == true
in the loop.
3 Likes