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

HLAPI How do I give network authority to an existing object?

$
0
0
Hi,

I am using HLAPI.
I have a scene where I placed a GameObject. To this game object I attached a script which has one simple function in it

[Command]
CmdTest(){...};

I compile the game and start one instance in the editor and one instance directly from the built .exe file. On one instance I jump into the game as a client+host (client1) and in the other instance i simply connect to the host as a client (client2).
Completely generic setup.

Now, when I trigger the CmdTest() function on...

HLAPI How do I give network authority to an existing object?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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