playMaker

Author Topic: [SOLVED] Remote event  (Read 5928 times)

MkAndersson

  • Guest
[SOLVED] Remote event
« on: June 10, 2012, 08:07:11 AM »
Hello. I'm new to playMaker so I'm not sure if this feature is already included
but I looked after it and couldn't find it so correct me if I'm wrong.

I have used UDK for quite a while before I moved over to Unity and I really like the
remote event node in Kismet that let's you call a node from where ever you want
and don't have to drag long lines across the entire thing. Everything is so much cleaner
and easier to navigate through.

So like in playMaker you add a remote state node or remote action that looks for the name
of a state node inside the FSM so when it is triggered the signal kinda skips to that state
node so you don't have to use a line to connect to it.

Anyway just an idea. If you already have that included then please let me know where I can find it.
Thanks for this great addon to Unity. Increases development speed quite a lot. Appreciated!

Cheers!
« Last Edit: June 12, 2012, 11:23:22 AM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Remote event
« Reply #1 on: June 10, 2012, 01:15:12 PM »
Hi and welcome!

 There is a no such action as is, but you can do it anyway.

 create an event for example "GO THERE" ( doesn't have to be global), and add a global transition with this event on the state you want to reach, and use "send event" set to self, and select that event "GO THERE"

then it effectivly allow you to go to that state without wire. So the only thing required is a global transition on that state.

 If you are having trouble grasping the concept, I'll do a working example.

 Bye,

 Jean

MkAndersson

  • Guest
Re: Remote event
« Reply #2 on: June 11, 2012, 05:55:21 AM »
Thanks for replying. Yeah I don't get exactly what you mean hehe
so yeah please if you have the time, throw together an example for me.
Thanks!

Cheers!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Remote event
« Reply #3 on: June 11, 2012, 07:01:39 AM »
Hi,

 ok, import that package, and in there, only one fsm, with two states, one event on state 2 and a send event action to call that event.

 If you need more details, let me know

 bye,

 Jean

MkAndersson

  • Guest
Re: Remote event
« Reply #4 on: June 11, 2012, 08:00:39 AM »
I opened your package but all I can see is a camera with no script on it.
Am I missing something? :/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Remote event
« Reply #5 on: June 11, 2012, 08:40:16 AM »
hi,

 there is a Fsm component attached to it. you do not to import the unity package for all this to work of course.

 then, you 'll see a "playMaker Fsm" component attached to the camera, click on the "edit" button and it will open the playmake editor.

 Bye,

 Jean

MkAndersson

  • Guest
Re: Remote event
« Reply #6 on: June 11, 2012, 09:37:07 AM »
Yeah I just solved it. For some reason when I imported it into my current project it messed up and
acted all weird but when I imported it in a new project it worked and I could open the FSM script
so it's all good now. Thanks so much for sharing! I'll be using this method a lot! hehe

Cheers!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: [Solved] Remote event
« Reply #7 on: June 12, 2012, 03:16:43 AM »
Hi,

 good. Be careful with this tho, as your stuff will get more and more dense, it will become difficutly to follow the process, so good documentation and clear naming or events and transition is a must, else massive headaches in few months :) Also the latest version of playmaker will let you know who can possibly send a particular global event by right clicking on it, it displays the list of possible senders, very handy.

Bye,

Jean