I'm making a gun system and I handle all the visuals and raycasting on the clientside. When I hit something I return a bool and on the serverside I check if the bool is true but how do I check if the bullet actually hit something serverside. When I try to pass the bullet to the serverside it returns nil and I cant raycast to see if the bullet hit it.
#Checking bullet validity
1 messages · Page 1 of 1 (latest)
Make the raycast server sided
Things that are created on the client stay on the client and exist ONLY on the client. When you try to pass something that was created on the client to the server, it doesn’t exist on the server which means it is nil.
A solution I made for my game is that both the client and server simulated the projectile casts simultaneously