Here is the error.
“MissingComponentException: There is no ‘NetworkView’ attached to the “npcmcrewvar3” game object, but a script is trying to access it.
You probably need to add a NetworkView to the game object “npcmcrewvar3”. Or your script needs to check if the component is attached before using it.”
void Awake () {
gameObject.name = (networkView.isMine ? "Local" : "Remote") + "_Player";
a.SetLayerWeight(1, 1);
a.SetLayerWeight(2, 1);
if(networkView.isMine){
cInput = Utils.LoadInput();
foreach (GameObject go in FindObjectsOfType(typeof (GameObject)))
go.SendMessage("OnPlayerSpawn", gameObject, SendMessageOptions.DontRequireReceiver);
moveDirection_current = transform.TransformDirection(Vector3.forward);
networkView.RPC("AddOrReplaceWeapon", RPCMode.AllBuffered, (int)WeaponSystemSetup.Weapon_Slots.UNARMED, 0);
networkView.RPC("AddOrReplaceWeapon", RPCMode.AllBuffered, (int)WeaponSystemSetup.Weapon_Slots.HANDGUN, 0);
networkView.RPC("AddOrReplaceWeapon", RPCMode.AllBuffered, (int)WeaponSystemSetup.Weapon_Slots.RIFLE, 0);
weapons.currentSlot = TryToSelectSlot(WeaponSystemSetup.Weapon_Slots.RIFLE);
}