help meeeeeeeee!!!
player is colliding with the bullet it shot in my mutliplayer fps
I know its because when its spawned on the server it has a delay, but how do i fix this C# only plz
help meeeeeeeee!!!
player is colliding with the bullet it shot in my mutliplayer fps
I know its because when its spawned on the server it has a delay, but how do i fix this C# only plz
Don’t spawn the bullet inside the players collider, spawn it out in front of it at the tip of a gun barrel and don’t have a collider on the gun barrel, or if you do have a collider on the gun barrel don’t have that object tagged or layered as a player. Then so long as you put a velocity faster than player movement on the bullet even if your player is moving forward it shouldn’t have time to collide with it regardless of a small server delay.
I appreciate your help, but there is no collider on the gun, the bullet is moving faster
I appreciate your help, but its spawned outside the players collider, moves faster than the player and the gun does not have a collider
Another quite simple solution is to add a script to the bullet. When you fire the bullet, you set the bullet owner within this script to the shooting player. Thus, each bullet knows its owner. When the bullet collides with a player, you can put a check before your hit detection code to make sure that the colliding player is not equal to the owning player.
i figured out this problem but thanks anyway
I have another post that im having trouble with, im quite new to multiplayer
What’s the solution?