09.03.2013, 06:50
A fairly simple way which i have used in the past is...
When you create the explosion store the x, y and z co-ordinates of the explosion.
Under OnPlayerDeath check if the player was killed by an explosion.
If the player died by explosion - check if they are in range of the explosion, use the x, y, z co-ords you saved when creating the explosion.
Now you can give credit to player who created the explosion.
It's not %100 accurate, but iv used this method before and it works.
When you create the explosion store the x, y and z co-ordinates of the explosion.
Under OnPlayerDeath check if the player was killed by an explosion.
If the player died by explosion - check if they are in range of the explosion, use the x, y, z co-ords you saved when creating the explosion.
Now you can give credit to player who created the explosion.
It's not %100 accurate, but iv used this method before and it works.