How would you recommend I do this:
I have a character that my player will move about his world. There are two cameras in the scene, one is a a view from the character’s viewpoint and is a child of the character. The second camera is a top view of the character and also a child of the character. I’d like the controlable character and the first camera on computer #1 and just the second camera on computer #2.
Any ideas?
I would create a “PlayerNetworkInit.js” script.
Something like:
var cameraFPS : Camera;
var cameraTopView : Camera;
function OnNetworkInstantiate (msg : NetworkMessageInfo)
{
// This is our own player
if ( networkView.isMine)
{
cameraFPS.enabled = true;
cameraTopView.enabled = false;
// Enable input
GetComponent( FPSWalker ).inputEnabled = true;
}
else
{
cameraFPS.enabled = false;
cameraTopView.enabled = true;
// Disable input
GetComponent( FPSWalker ).inputEnabled = false;
}
}