help me please for my question…
i have a problem with the prefab, i cant get the random player for my game,. over here the engine said “index out of range”,…
the cronologies like this ,… i have a level for my car,… and i would like to randome player when client connect into server,.
function MakePlayer() {
// Randomize spawn point and instaniate a player.
var tmps : GameObject[ ] GameObject.FindGameObjectsWithTag(“Respawn”);
var i = tmps.length;
i = Random.Range(0, i);
Network.Instantiate(player, tmps_.transform.position, tmps*.transform.rotation, 0);*_
for the Bold player i declare it in the variabel player prefab, in this case i point it to may car player,…and i have make a respawns empty obeject for 8 player ,…but in my game cant running,…why??
please help me…