playMaker

Author Topic: Photon View RPC Broadcast Fsm Event to Player  (Read 29 times)

gregacuna

  • Junior Playmaker
  • **
  • Posts: 72
    • View Profile
Photon View RPC Broadcast Fsm Event to Player
« on: September 13, 2017, 05:08:24 AM »
We're trying to keep network traffic lower by using:

Photon View RPC Broadcast Fsm Event to Player

But it doesn't seem to be working. If we use Broadcast Fsm Event which is broadcast to all then the event triggers the expected behavior...

But if we get use "Phone View Get Owner Properties" to get "Name" under "player properties" then use the "Name" for the "Target Player Name" when using "...Broadcast Fsm Event to Player" nothing happens.

We can see the player name at runtime and see it is the name returned from the Owner Properties...but the event isn't being received by that player.

Suggestions?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12089
  • Official Playmaker Support
    • View Profile
Re: Photon View RPC Broadcast Fsm Event to Player
« Reply #1 on: September 18, 2017, 12:05:26 AM »
Hi,

 The broadcast value must stay put, and it doesn't affect the RPC traffic, its the rpc target itself that counts.

The broadcast option is not used, because it doesn't actually work like that for RPC, it's simply because I can't do it otherwise within Actions to present a global event.

Bye,

 Jean