Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

[Fixed]Spawn Ignoring Assigned Transform Position

$
0
0
Hey, I have two players in my game, using a single prefab. I use a switch statement to keep track of which player is Player 1 and which one is Player 2.

I then have two spawn points set in the game that the players are to spawn at. Player 1 always spawns at the correct location. However, player 2 always spawns at 0,0,0 regardless of the fact it's assigned spawn point 2.

If someone could look over my script and point out what I did wrong, I would highly appreciate it.

Code (CSharp):
  1. using...
[Fixed]Spawn Ignoring Assigned Transform Position

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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