Hello.
I have a bullet system in which a new caster is created per ammo type once rather than per gun. Basically, if a gun wants to shoot, it sends out what ammo type it uses and the server takes the caster for said ammo type and fires a ray with its settings. This way there is no need to create a new caster for every gun that exists.
Problem: the bullets cannot ignore the exact player who shot it as the RaycastParams have to be created once, and cannot include a specific player since it would be shared across multiple guns. Is there any way to set it so it ignores per ray fired? I don’t want to create new RaycastParams everytime a bullet is fired.
Apologies if it’s not clear, it’s a little hard to explain.
Here is how part of the code is set up incase it helps.
I will try to clarify anything if need be.