|
I'm trying to create a lan multiplayer game using the FPS prefab as the player. I can instantiate the prefab on both client and server but the problem is that in each side I'm controlling both prefabs. Thoughts? Thanks for any help,
(comments are locked)
|
|
If you check out the multiplayer tutorial (the one with the Storm Trooper ) there is a script there called RigidAssign.js. This makes sure that what you control locally is not also controlled by a network view. You can make a script, call it FPSPrefabAssign.cs (I prefer C# for scripting) and assign it to the FPSPrefab (the prefab that you instantiate and has attached a NetworkView component). The only thing you have to write in the FPSPrefabAssign.cs script is:
Hope this helps. It is much better if you also take a look at the tutorial, you'll better understand this (possible) solution. thats says this Assets/Network/Networking Scripts/NewBehaviourScript.cs(10,5): error CS0246: The type or namespace name `FPSNetworkSynchronizer' could not be found. Are you missing a using directive or an assembly reference?
Jan 11 '11 at 11:19 PM
Fierce Waffle
(comments are locked)
|

Hello, I dont have an answer, but, have you checked this? http://www.m2h.nl/files/M2H_Networking_Tutorial.pdf