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

How can I apply damage to my player character? And sync value across players

$
0
0

I am trying to develop a small multiplayer game. I have a bomb script and every time player hits the bomb button, a bomb is instantiated and exploded after the timer is up. I applied a overlapping sphear to get players in effecting area.. And the players in the area are getting the bombs explosion effect as in getting force from explosion. All works fine expect my damage script. Once a player is damaged all players get that damage. I tried making health an observable component. But all coming up with errors.

How would you approach this problem


Viewing all articles
Browse latest Browse all 8947

Trending Articles



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