Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: gozda on December 27, 2016, 06:26:13 AM

Title: Photon events
Post by: gozda on December 27, 2016, 06:26:13 AM
If its possible, can someone create action for photon like "Photon View RPC Broadcast Event With Data" but with option to send event to group of players getting from array?

I know there is a field "Photon Targets From String" and there can be "All,AllBuffered,MasterClient" but i am not sure for what is this for.
Title: Re: Photon events
Post by: jeanfabre on January 23, 2017, 01:19:10 AM
Hi,

the Fields is letting you decide who receives it but it's on a different level entirely.

photon doc (http://doc-api.exitgames.com/en/pun/current/group__public_api.html#gab84b274b6aa3b3a3d7810361da16170f)

in your case, you should do the following:

 send one RPC only to ALL or OTHERS, and in the message you'll explicity mention to who this is supposed to be dealt with.

-- you'll save messages and bandwidth, meaning cost of hosting and smoothness

Or you can start working with network groups. But you'll need to experiment with this.

Bye,

 Jean