- Home /
Question by
Loligxp · Sep 11, 2020 at 12:16 AM ·
networkingmultiplayermirror
Mirror NetworkServer.Spawn doesn't spawn stuff on Clients
I can't get my Bullets to spawn on both the client and the Host, only the host does. I've added the prefab to Registered Spawnable Prefabs already
[Command]
void CmdShoot(Vector3 Pos, Quaternion Rot, ScriptWeapons UsedWeapon)
{
var Bullet = NetworkManager.Instantiate(BulletPrefab, Pos, Rot);
NetworkServer.Spawn(Bullet);
}
Comment
Best Answer
Answer by Loligxp · Sep 10, 2020 at 08:46 PM
Found the issue. the NetworkIdentity on the Bullet prefab had "Server Only" checked. I unchecked it and now it works. :D