#Detect Particle Collisions

4 messages · Page 1 of 1 (latest)

winter coral
#

Hey everybody. I am currently trying to make a system where a player can shoot a particle at another player and deal damage to the hit player. I have activate the particle system using a Command which triggers a ClientRpc to activate the particle system on all clients. This works fine. However, I am struggling to detect the particle collision. I have the following code on my player:

[ClientCallback]
private void OnParticleCollision(GameObject particle) 
{
    Debug.Log("Hit");
}

I also tried removing the [ClientCallback] tag.
The particle system should be set up correctly.

distant idol
winter coral
distant idol