How to make trigger of a scene object work only for local player?

I have an image in-game with a trigger that when player approaches to, will play audio source clip.

Problem is, that when 1 player approaches, it plays the audio for all other players.

The image is " Not " instantiated for network and has " No " PhotonView component on it.

How should I change to have it play the audio only for the local player that approaches and not for any other, if to keep audio source on the image, and not the player.

I think if I use the player, then I can play only if photonView.IsMine, but I would like to play using the Image audio source but without instantiating the image for network, if possible.

Best Answer

Answers

Sign In or Register to comment.