Hi there.
Right now I have the following:
- Scene
- Player Prefab that gets spawned on connection.
- Ball that is a child of player prefab.
I have the following script
Networking HLAPI - Only do something when there is at least 2 players connected
Right now I have the following:
- Scene
- Player Prefab that gets spawned on connection.
- Ball that is a child of player prefab.
I have the following script
Code (CSharp):
- {
- if (isLocalPlayer)
- {
- CmdShoot();
- }
- }
- [Command]
- void CmdShoot()
- {
- NetworkServer.Spawn(instance);
- RpcSetParent(instance);
- }...