Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

What is the right way to do shooting with Server Authority?

$
0
0
Currently, players send the bool "IsShooting" on photon stream (which is just the Input.Getkey bool). on the MasterClient, I create a ray cast for the players with a true IsShooting and damage if hit. The problem i'm having is that, on the masterClient's ray, I can't specify (IsLocal or IsRemote) layers, so sometimes the shooting player ray ends up hitting it self... so which way I should do this? the ray begin point is the transform.position/rotation of the camera behind players (which is also sent on stream)

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>