playMaker

Author Topic: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?[SOLVED]  (Read 3118 times)

RC

  • Full Member
  • ***
  • Posts: 148
PhotonView RPC Broadcast Fsm Event Exclude Self Bug?[SOLVED]
« on: March 13, 2015, 01:06:21 AM »
Hi,

I'm trying to use photon rpc broadcast all excluding self, but it seem that it's not working correctly?

Can someone confirm this?

Thanks
« Last Edit: March 16, 2015, 02:08:21 AM by jeanfabre »

RC

  • Full Member
  • ***
  • Posts: 148
Re: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?
« Reply #1 on: March 13, 2015, 11:42:49 AM »
What I mean is that, even if the "exclude self" is selected ticked. It's still sends the call to self.

If anyone have a fix for this I would appreciated. Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?
« Reply #2 on: March 13, 2015, 12:27:52 PM »
Hi,

 yes, this option isn't doing anything, you shoudl leave it to broadcast, it's just that I can't expose events otherwise. But Actually I think I know a trick to remove this misleading option.

 You can only define to whom you are going to send an rpc via the rpc target option. Have you experimented with this already?

 Bye,

 Jean

RC

  • Full Member
  • ***
  • Posts: 148
Re: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?
« Reply #3 on: March 13, 2015, 10:05:12 PM »
Hi,

I have tried to do an RPC to a single  player and works.

What I want to do is send an RPC to all player to create a bullet, so I don't have to do a photon instantiate a bullet.

Thanks

RC

  • Full Member
  • ***
  • Posts: 148
Re: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?
« Reply #4 on: March 15, 2015, 05:52:26 PM »
So, what I got so far is, player 1 and Player 2 in a room.
Player 1 Fire and sends an RPC to Player 2
Player 2, grabs Player 1 position and create a bullet with player 1 position.

It seems like an easy thing to do, but I can't seem to get player 1 position correctly from player 2 to set the bullet position.

It comes down to, how do you get the bullet position from the RPC sender?

Any advice would be great.
Thanks.

« Last Edit: March 15, 2015, 09:59:58 PM by rongconcrx »

RC

  • Full Member
  • ***
  • Posts: 148
Re: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?
« Reply #5 on: March 15, 2015, 11:03:56 PM »
OMG..
I can't believe it's this simple. I figured it out...I'm so happy, It's been 3days 18 hours a day trying to figure this out.

player 1
1. get position of spawn transformer. "Vector3"
2. Convert Vector3 to String   "String"
3. send rpc with String Data "String"

Player 2
1 Get Event Info - String data " String"
2. Convert String To Vector3 " Vector3"
3 . Set position bullet spawn point with Converted String "Vector3"


I'm sorry for my bad grammer, I'm just very happy at the moment.

 ;D

« Last Edit: March 15, 2015, 11:30:51 PM by rongconcrx »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PhotonView RPC Broadcast Fsm Event Exclude Self Bug?
« Reply #6 on: March 16, 2015, 02:08:09 AM »
Hi,

 :) no worries. Keep at it!

 Bye,

 Jean