In unity I have created a multiplater game but when I input a command it does it to all of the players, I then learned from youtube and you guys on the unity forums and unityanswers page I need a code , something like netowrkview.mine. What is that code? And where do I insert it on a third person multiplayer game?
please reply as very urgent.
Try disabling the component that controls the characters on all characters but the one you want to control.
The unity docs have a quickie example showing how isMine is used. In this case you can update sections of your code that checks for input wrapping them in the if(NetworkView.isMine) condition so that only locally created objects process local input.
//do move stuff
//do move stuff}
The above assumes a networkview is present. If this might not be true then you need to test to see if networkView is null before checking the isMine value.