Previous: Photon Team Object, Up: Network [Contents][Index]
**NOTE** Must have a PhotonInstantiator or another component to receive the ’Spawn’ message on the spawn point object.
To use, send the ’Respawn’ message after the player dies with a string parameter indicating the tag of the team spawn we wish to start at. For example the tag might be ’Team0Spawns’. This will send the ’Spawn’ message to one of those objects by randomly selecting one. You must have a PhotonInstantiator on the ’Team0Spawns’ objects in order for this to work.
Respawns the player using the indicated spawn point tag
Argument: The tag used to indicate spawn points for the desired team
Changes the ’Player Prefab Name’ (seen above) so that another player class may be spawned
Argument: The exact name of the new player prefab, which must be in a ’Resources’ folder, or Unity will throw an error instead of spawning the object.
Respawns the player using the indicated spawn point tag
Argument: The tag used to indicate spawn points for the desired team
Changes the ’Player Prefab Name’ (seen above) so that another player class may be spawned
Argument: The exact name of the new player prefab, which must be in a ’Resources’ folder, or Unity will throw an error instead of spawning the object.