Hi! First ever post here.
So, this isnt an original post but Any way to stop players spawning in the same place? Didnt really help since my players dont move, they are stationary in their spawn.
Below is what i have as the spawning code. What would i need to add to this if i want to make sure no player spawns in the same spawn? Because currently they can/do.
public void Spawn()
{
int randomNumber = Random.Range(0, spawnPoints.Length - 1);
Vector3 spawnPoint = spawnPoints[randomNumber].GetComponent<Transform>().position;
Debug.Log("Creating Player");
PhotonNetwork.Instantiate("Player", spawnPoint, Quaternion.identity, 0);
}
(i have Spawn(); in Start())
Non coder here, well i can code but pretty new and only basics.