Nowing this, you still need to be aware of the following when implementing Unity Network remote event with PlayMaker. It doesn't matter if the event is global or not. In short, don't expect a PlayMaker global event to be broadcasted, instead, it's only within the Fsm that you will receive that remote event. I forget that since I am used now to the way it works with Photon PlayMaker port. RPC call only send to the networkView ID, that is the event you send from playmaker will only be fired to the SAME fsm observed by a networkView. Ok, everything is "fine", here is the few catches. Thanks in advance as always for all the help. Is there any example anywhere of this being set up for a networked game and properly working? This is something that is really, really needed. There's nothing in them at all about sending messages. (I'm guessing they are actually encoded into the main Playmaker framework and are not accessible?)Īnyway, I've found the networking examples on the website here, but all they do is go through the very basic steps of connecting players. I've checked the SendRemoveEvent.cs script and I see it's using a standard networkView.RPC call, so all I can think of is that whatever is done when you click the "Global flag" on the event isn't setting up the event as a proper RPC or something along those lines, though I can't seem to find where the actual FSMs are stored to check that. When played, the FSM proceeds normally to the state containing the SendRemoteEvent, but the global event it's set to never gets triggered. Additionally, a network View has been attached to the object containing the FSM and is set to observe the FSM. The "Remote Event" field is then set to the global event, "Game Object" is left on the default "Use Owner", and "Mode" is set to default "All". (I attach this by right-clicking on the state and selecting "Add global transition>Global Events>myGlobalEvent) I then have another state that has a global transition going into it. I've created a simple FSM that's set up so that when the right mouse button is clicked, it goes to a second state that contains the SendRemoteEvent action. I ask this question because I can't seem to make it work and I can't find any examples of this in use anywhere, so I have nothing to go by.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |