Hi! Since we are working on one great multiplayer game we use Photon and ofc Playmaker but right now I am stuck with destroy function.
Here is the example of what I want to destroy:
I have my inventory which works just great for multiplayer and after drop item from inventory (it's synced to other players, they see it at proper position and rotation) to the scene I can pick it back ofc, but I want other players to pick that item as well because this will be use for loot after you kill somebody. Thing is that other players can actually pick that item and store in inventory but I can't destroy that item from network, item is set to be destroyed after someone pick it and GUI item will be added to inventory. Only player who drop that item can actually destroy it but I want to destroy it with other players, actually players who pick that item I want to destroy it.
So my question here is how can I actually destroy objects in photon network if I am not master client? IS there any way to get master client and do this:
" get master client and store it/ get game object you want to destroy and use set fsm game object to set game object you want to destroy in master client/ send event to master client to destroy that object"
So how actually I can destroy something that is network instantiated?
IF I use photon network destroy it will destroy item but only on owner player scene, not on other players scenes even if item has photon view component because only master client can destroy network item. Tried everything and don't have idea how to do this.
This is also important for me because I want to know how I actually spawn items on multiplayer scene like weapons, medpacks, ammo after some time visible by everyone and pickable by everyone.... and who picks certain item, that player should destroy that item.
Any idea how to solve those problems?
Thanks and Cheers!