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

Assign Player Index (GetRoomIndex) Utility Script

$
0
0
Hello!
I am having a dilemma where I don't know how to assign each player there own index number. To call the PlayerRoomIndexing script I am successfully using the namespace 'using Exitgames.UtilityScipts' which is working fine and in my update function for my player's script I am calling ' playerIndex = PlayerRoomIndexing.instance.GetRoomIndex(photonView.owner);' I don't know if this is right but this was the closest thing I found online. I want to be able to give each player their own index number and then reference that number in another script to be able to link it to a scoreboard. I would be grateful for some help.
-Eli

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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