So in my game I use proximity prompts and players are able to stand infront of them and block them from other players. How can I bypass this? (I also still want the prompts to be blocked by walls and regular parts.) Is the only option hardcoding my own system to make them appear?
you could add a rule where doing so gets you a permanent ban
I am assuming here that they are intentionally doing it to disrupt gameplay and it is not just an unfortunate coincidence (in that case you could try increasing the range of the prompt)
no way to do this other than letting it go through walls, and doing raycast checks to determine what is blocking the camera from the prompt.
Nobody has actually intentionally done it so far that I’ve seen. Sometimes a bunch of players can gather around the prompts resulting in it being blocked for some.
Yea I figured I’d have to do it the hard way. Thanks!
Sorry, but what are the prompts for? Just asking because there could be a solution that doesn’t involve using prompts.
e.g. if your game is like rate my avatar, perhaps use a GUI that displays all players instead?
On the client, you can do a raycast to see if the player can view the proximity prompt, if they can, set the RequiresLineOfSight property on the proximity to false.
- Edit, I would also check if the player is within the range of the proximity prompt before firing the raycast.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.