x


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#.

more ▼

asked Nov 11 '11 at 07:46 PM

DevonJavaScript gravatar image

DevonJavaScript
56 12 20 20

My 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?

Nov 12 '11 at 05:03 AM Jehos

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.

Nov 12 '11 at 05:14 AM syclamoth
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3014
x711
x113
x30

asked: Nov 11 '11 at 07:46 PM

Seen: 846 times

Last Updated: Nov 12 '11 at 05:14 AM