Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: SeanC on January 31, 2016, 08:04:06 PM

Title: Set Array on another FSM/GameObject[SOLVED]
Post by: SeanC on January 31, 2016, 08:04:06 PM
Hello,

I am using the latest BETA version of PM and I am trying to use the Array actions to set an Array Variable on another GameObject. Unfortunately, none of the actions seem to support that. "FSM Array Set" seemed promising, but that seems to only allow a string to be transferred - nowhere does it ask for the Variable type.

Am I missing something? How can i set an array variable/add an array item to an array on another GameObject.

Thanks!
SeanC
Title: Re: Set Array on another FSM/GameObject
Post by: mdotstrange on February 01, 2016, 04:21:14 AM
It seems like if you want to access an array on another object you have to create an array var that is global or use Arraymaker
Title: Re: Set Array on another FSM/GameObject
Post by: tropical on February 07, 2016, 11:30:01 AM
"FSM Array Set" seemed promising, but that seems to only allow a string to be transferred - nowhere does it ask for the Variable type.

I have noticed that as well. To me the action somehow looks like work in progress. The tooltip text ("Set an item in an Array Variable in another FSM") differs from what is actually done.
Title: Re: Set Array on another FSM/GameObject
Post by: realrobo on April 05, 2016, 12:35:26 AM
Any updates on this action?
I'm in pretty desperate need of this action to be fixed.  I have multiple game objects with dynamic Arrays in the scene, so I prefer not using global array variable.  And also I have only used just 1.8 array functions thus far, and would prefer not using array maker just to use this one function if it's possible.
Title: Re: Set Array on another FSM/GameObject
Post by: jeanfabre on April 05, 2016, 02:20:16 AM
Hi,

 Yes, 1.8 currently is missing an attribute for us to be able to access other fsm's FsmArray variables.

I'll ping Alex on this. I guess there are technical difficulties in this specific process.

Get back to me end of this week, I think I can make an action that let's you soft link variables, you won't get any list of variables, you'll have to use a regular string.


Bye,

 Jean
Title: Re: Set Array on another FSM/GameObject
Post by: realrobo on April 05, 2016, 10:33:05 AM
AH,  thank you :]
Title: Re: Set Array on another FSM/GameObject
Post by: realrobo on April 12, 2016, 07:50:08 PM
Hello.
Is there any update to the action for the soft link variables you mentioned?
Title: Re: Set Array on another FSM/GameObject
Post by: jeanfabre on April 15, 2016, 02:43:22 AM
Hi,

 Not yet, Let me tackle this.

Bye,

 Jean
Title: Re: Set Array on another FSM/GameObject
Post by: jeanfabre on April 19, 2016, 03:01:30 AM
Hi,

 It's actually coming in the beta, so this will be soon available.

Bye,

 Jean
Title: Re: Set Array on another FSM/GameObject
Post by: craigz on April 29, 2016, 01:56:47 AM
excellent! really need this as well! :D
Title: Re: Set Array on another FSM/GameObject
Post by: Silicon Power on June 17, 2018, 06:26:29 PM
What happened to this?
Title: Re: Set Array on another FSM/GameObject
Post by: djaydino on June 18, 2018, 04:17:17 AM
Hi.
You can use the "Set Fsm Array Item" (Single item on target arrya) and "Set Fsm Array" (whole array) action :)
Title: Re: Set Array on another FSM/GameObject
Post by: Silicon Power on June 18, 2018, 05:38:20 AM
Hi.
You can use the "Set Fsm Array Item" (Single item on target arrya) and "Set Fsm Array" (whole array) action :)

It doesn't work correctly for me. I used "Set Fsm Array" and it just change my variable to default value.
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: djaydino on June 18, 2018, 01:43:22 PM
Hi.
Indeed "Set fsm Array" seems to be broken.

in playmaker 1.9.0p2

"Set Fsm Array Item" does seem to work.

I will post a bug report.
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: djaydino on June 18, 2018, 01:54:03 PM
Hi,
I think i found the issue.
Here is an updated version you can try. (attachment below)
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: Silicon Power on June 18, 2018, 02:30:05 PM
Hi,
I think i found the issue.
Here is an updated version you can try. (attachment below)

Thank you a lot it works now but what about "Get Fsm Array"? It doesn't work please fix it too. 
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: djaydino on June 18, 2018, 02:41:27 PM
Hi,
i already send a report and it will probably be fixed in the next update :)

i will see if i can make a temporary fix for you.
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: Silicon Power on June 18, 2018, 02:44:48 PM
Hi,
i already send a report and it will probably be fixed in the next update :)

i will see if i can make a temporary fix for you.

Thanks a lot, I really need to finish my job soon.
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: djaydino on June 18, 2018, 02:48:59 PM
Hi.
Here you go :)
Title: Re: Set Array on another FSM/GameObject[SOLVED]
Post by: Silicon Power on June 18, 2018, 02:58:23 PM
Hi.
Here you go :)

(https://statesymbolsusa.org/sites/statesymbolsusa.org/files/primary-images/Rose-NationalflowerUSA.jpg)