ChristianWiele
Active member
Hi,
I would like my characters to spawn objects that they own and control using the object pool, but ran into 2 issues:
1.) Any client can instantiate pool objects. I use the NetworkSpawn method and set the sceneObject to false. Initially, the owner is set correctly, but if the object is reused by another client the owner is not changed to the new owner.
2.) The objects can be spawned by any client, but can only be destroyed by the master client.
I can fix the first issue by explicitly transferring ownership, but I don't know how to deal with the second one.
Regards, Christian
I would like my characters to spawn objects that they own and control using the object pool, but ran into 2 issues:
1.) Any client can instantiate pool objects. I use the NetworkSpawn method and set the sceneObject to false. Initially, the owner is set correctly, but if the object is reused by another client the owner is not changed to the new owner.
2.) The objects can be spawned by any client, but can only be destroyed by the master client.
I can fix the first issue by explicitly transferring ownership, but I don't know how to deal with the second one.
Regards, Christian