How to get the UserId from a player that collided into the BoxCollider?
Options
Only thing I got was this:
But I do not want the ViewId but the Player's UserId!
other.gameObject.GetComponent<PhotonView>().ViewID
But I do not want the ViewId but the Player's UserId!
0
Comments
-
I made it work with:
other.gameObject.GetComponent<PhotonView>().Owner.UserId
0 -
Hi @Fulanotalgames,
For this to work, you need to create rooms usingRoomOptions.PublishUserId
enabled (set totrue
).0 -
Work, thanks0