- Home /
Question by
audacelol12 · Nov 15, 2021 at 01:34 AM ·
androidinstantiatemultiplayerphotonpun
PUN 2 : Impossible to applied damage to all player in overlapSphere created by a bomb ?
Hi, I have a problem with my PUN 2 bomb's script and I'm not able to fix this problem. All work for connectivity and room, but when a player instantiate a bomb in room, not all player in his overlapSphere is affected by the bomb (I only able to applied damage on isMaster player or NoIsMaster player) and I want all player (IsMaster and NoIsMaster) have damage. I created an interface script TakeDamage (int damage) and player action script who instantiate a bomb (PhotonNetwork.Instantiate). I hope someone can help me with my problem. Thank!
capture-decran-7.png
(50.4 kB)
capture-decran-8.png
(74.5 kB)
Comment