Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Instantiating different player objects

$
0
0
The players of my game have different cars that they can customize, such as different guns and bodies. I am trying to instantiate these different objects, however the server will only be able to create the playerPrefab. I have, within my NetworkManager class, an overridden method OnServerAddPlayer method that instantiates the playerPrefab. I see that this method is only called on the server. How could I make it so that the server instantiates the objects that the clients wish to be instantiated?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>