How do I turn off friendly fire in explosions? (Unsolved)

Hello!

I was wondering how I can turn off friendly fire in explosions because it keeps killing teammates. Is there a way to detect any explosion that happens and then detect if the player is a teammate or not?

I am currently using the blizzard helicopter system and ACS 1.7.5 version

1 Like

Have you tried adding ownership to helicopters, then just checking the team of the player. If their team is the same as the helicopter they’re attacking, don’t do damage.

1 Like

I would done that, if I could find the script that actually damages the player, since blizzard has a whitelist system and the scripts are mostly obsfucated I can’t really seem to find it

You can change the DestroyJointRadiusPercent on the explosion to 0, you can find more about it here then after that you can use Explosion.Hit to detect when it is hit and figure out if that player is on the same team or not.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.