Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: bodsey on October 04, 2015, 06:10:44 AM

Title: [Photon] Send float through RPC
Post by: bodsey on October 04, 2015, 06:10:44 AM
Hi all, hi Jean

I've seen another topic on this, but it's one year old.

I'd like to send float through a RPC broadcast event, especially to let the master client decide random values and transmit those to clients without going through synch var, in order to minimize the amount of messages.

- Is this feature still coming ?
- If not is there a reason why ?
- If not you mentioned you could explain how / where to script this. I'm able to script so no issue here if that's the only solution.

Thanks a lot !
-Jérôme
Title: Re: [Photon] Send float through RPC
Post by: charming_fox on October 04, 2015, 10:15:40 AM
Hey, I'm sure someone can answer better than me but I think you can send the float as a string then just convert it back to a float at the other end?
Title: Re: [Photon] Send float through RPC
Post by: bodsey on October 04, 2015, 10:19:00 AM
Hey, I'm sure someone can answer better than me but I think you can send the float as a string then just convert it back to a float at the other end?

Thanks for your reply. I could, and surely I will if there's no other option, but as I'm pretty sure Photon has the ability to transmit float through RPC I'd prefer to use this feature to keep my script as clean as I can :)