- Home /
Spectator Camera (Online)
How would I do this without doing
camera.active = true/false;
Or switching the camera with,
if(x){
cam.position = cam2.position;
}
I'm sorry I don't really have any base script other than my GUI Menu but thats for spectators to choose a team and such.
More Info: If I instantiate a player on a certain team how would I switch to that camera without disabling the camera used for spectators?
PS: I am using C#.
$$anonymous$$y guess is it won't matter if you disable that player's camera, since that will be happening in that player's computer only, and the rest of the players will still have the spectator camera enabled.
Everything you do on one client, unless observed by a network view or manually synched through RPCs, just stays at that client's local player.
Does this makes sense?
I would even go so far as to recommend that any character in the game world that is not the local player not even have a camera attached at all! The thing you need to remember about multiplayer games here, is that it is not one 'world' in which all the players meet each other- there are as many 'alternate realities' as there are players, and the role of your network code is to make them look as similar to each other as possible, while not needing to use too much network traffic.
Your answer
Follow this Question
Related Questions
Multiplayer camera bug - Everyone sees what last joinen player sees. 0 Answers
help with network controling 1 Answer
Using any camera as maincamera. 0 Answers
Show other players other models 1 Answer