Hello,
While developing my own multiplayer game with the Third Person Controller and PUN integration, I noticed an issue with AI's weapons not appearing in their hands in a certain workflow.
The workflow is as follows:
1.) The room is created by a client, making them the master client
2.) A second client joins the room
3.) The master client leaves the room
4.) Another client boots up and joins the room
The client at step 4 in this workflow will see AI agents without equipped items. For instance, following these steps in the PUN Add-on's demo scene will lead to the client who joined at step 4 seeing AgentNolan walk around without his gun, but still aiming as if he was holding it.
I was trying to think of why this would be a problem for AI agents only, and not players. Players all have their weapons equipped per normal. My leading suspicion is with the Runtime pickups. I have always been a bit confused by the Runtime pickups for the reason that the Runtime Pickups component on the PunGame object in the Pun Add-on demo scene only has two items in it (BowPun & KatanaPun) which seems really odd. The naming of these objects also makes me think there is something special with their components in regards to PUN. But I don't think that's the case.
Any help on this would be much appreciated!
While developing my own multiplayer game with the Third Person Controller and PUN integration, I noticed an issue with AI's weapons not appearing in their hands in a certain workflow.
The workflow is as follows:
1.) The room is created by a client, making them the master client
2.) A second client joins the room
3.) The master client leaves the room
4.) Another client boots up and joins the room
The client at step 4 in this workflow will see AI agents without equipped items. For instance, following these steps in the PUN Add-on's demo scene will lead to the client who joined at step 4 seeing AgentNolan walk around without his gun, but still aiming as if he was holding it.
I was trying to think of why this would be a problem for AI agents only, and not players. Players all have their weapons equipped per normal. My leading suspicion is with the Runtime pickups. I have always been a bit confused by the Runtime pickups for the reason that the Runtime Pickups component on the PunGame object in the Pun Add-on demo scene only has two items in it (BowPun & KatanaPun) which seems really odd. The naming of these objects also makes me think there is something special with their components in regards to PUN. But I don't think that's the case.
Any help on this would be much appreciated!