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

Spawn objects instantly on the client

$
0
0
I am aware that in order to spawn objects over the network, one must call NetworkServer.Spawn() on the Server. However, say for example the client fires a projectile on mouse click. On the client side, we don't want to wait for the server to receive the command to spawn the projectile but rather spawn the projectile instantly on the client and then notify the server.

How can I go about doing this? (NetworkServer.Spawn() does not work on the client side)

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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