Detecting a raycast without communicating with script that sent raycast

Basically I want to be able to detect if a raycast is sent at an object, without interacting with the script that sent the raycast.

Here is a diagram incase I am not explaining it well.

Unfortunately there isn’t a RaycastService which detects launched Raycasts, so you’d have to apply a different approach to your system.

1 Like

are raycast’s just stored on the client then? is their a way to make it stored on the server?

Raycasts are like normal variables, they are stored wherever you create them. You cannot store a raycast on the server if it’s casted by a client.

1 Like

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