Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Lane on January 19, 2015, 07:51:10 PM

Title: Get Host Info
Post by: Lane on January 19, 2015, 07:51:10 PM
Pull information about the Host FSM when the current FSM is operating as a Sub FSM. This is useful for returning variables from a Sub FSM upward to the Host FSM Object easily.

Also on Ecosystem.
Title: Re: Get Host Info
Post by: thatnzguy on June 04, 2015, 07:46:44 PM
Seems just what I want, all the fields work and return strings, except Game Object, it seems to return nothing for me.
Title: Re: Get Host Info
Post by: Lane on June 04, 2015, 09:39:58 PM
That's odd. I'll look into it when I get back in the country.
Title: Re: Get Host Info
Post by: thatnzguy on June 17, 2015, 05:17:06 PM
I did a quick test, and noticed there's this error in the console. See the screenshot. I've included a package file that has a scene and template.
This was made using 1.8.0.f21
Title: Re: Get Host Info
Post by: Lane on June 17, 2015, 08:01:13 PM
Looks like you're trying to run it on the Host Object? You should be using this on the template to retrieve information about the Host.
Title: Re: Get Host Info
Post by: thatnzguy on June 18, 2015, 05:08:15 PM
On the host gameobject all I have is a Run FSM action running the template that contains the GetHostInfo.
You can see the host gameobject fsm is "Host:FSM", and the screenshot is from the template being run "Host:FSM:FSM"

Ignore the console errors, I had another gameobject that was running the template on itself.

I appreciate the time you're putting in to check this out by the way!
Title: Re: Get Host Info
Post by: thatnzguy on June 21, 2015, 06:01:03 PM
Attaching a newer package that does not contain the bug
Title: Re: Get Host Info
Post by: Lane on June 21, 2015, 06:21:56 PM
Found the bug! Fixed in new action attached in OP.