I'm trying Unitys network functionality for the first time. My current problem is the following: A player can
But when the building spawns the unit the
Note: Both the units and buildings NetworkView are already added in the prefabs.
Edit: Of course after asking the Question, a quick and dirty solution came to my mind:
Seems quick and dirty, works for the moment. But i'm not sure if its the optimal way to build on.
If the script is only responsible for spawning the units, just disable or remove the script on all other clients (server included). Just check in Start if you are the owner of this building.
if you still need some functionality of this script you can restrict the spawning to the owner just the same way:
answered May 17 '11 at 01:53 PM