- Home /
Best way to make multiplayer projectiles and enemy shooting player (discussion) ?
Hi, I am developing a top down stealth game and obviously want to make projectiles or bullets flying at the player from the enemy. So far I came up with a solution that is making two raycasts , one of them delayed to check if the bullet travel hit the player. The first raycast is just to check if there is a candidate to shoot at. But the problem with that is raycasts have very other charasteristics than a travelling bullet , and enemies raycasting at the player is unrealistic and overpowered (without fake error), and with the implementation I have done the player can't run "into" a bulletstream so if the player rmoves just a bit he is invincible because the first raycast doesnt register anything. Obvioulsly the solution would be a bullet rigidbody traveling similar to a emitter but thats not very multiplayer proof I think. Best thing would be to have something like in arma 3 or something thats in unity like Unturned but I have no idea how it is there.