playMaker

Author Topic: Photon events  (Read 1803 times)

gozda

  • Junior Playmaker
  • **
  • Posts: 88
Photon events
« 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon events
« Reply #1 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

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