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

NetworkMessageInfo.sender equivalent in HLAPI?

$
0
0
I have a bunch of gameObjects on the server which are linked to a users connectionID in a list. When a player sends the server a command "Please spawn my object", I need to check through all the gameObjects and spawn the object which belongs to that connection. With the legacy system I could simply check NetworkMessageInfo.sender for this. Is there an equivalent in the HLAPI?
I was going to use
GetComponent<NetworkIdentity>().connectionToClient
and...

NetworkMessageInfo.sender equivalent in HLAPI?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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