Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: heavygunner on October 25, 2020, 01:23:51 PM

Title: Photon - Spawning common object to all players
Post by: heavygunner on October 25, 2020, 01:23:51 PM
Hi !

This is for aa co-op game. Random zombies will be spawned from Game manager. If Zombies array had 5 zombies, system will spawn random every x seconds. What i want is, since Game Manager is common for all players, how to spawn same zombies for all players in that room ?

new to photon.

Thanks
Title: Re: Photon - Spawning common object to all players
Post by: LordHorusNL on October 25, 2020, 05:42:56 PM
You only want the Game Manager on the Master client to spawn the Zombies with a Photon instantiate action and this should automatically replicate the Zombies on the other clients.

In most cases you want the Master Client to be responsible for spawning NPC's over the network. The official Photon forum is a good resource for questions about networking.