Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: jonb on June 13, 2020, 07:41:14 PM

Title: Array variable isn't persisting attributes
Post by: jonb on June 13, 2020, 07:41:14 PM
Trying to set up a simple FSM managed flashcard scene as part of my PlayMaker ramp up (I'm relatively new to it).  I created a local int Array variable in my FSM that is of size 3.  It holds 3 simple int values to set up my flashcard "problem" (ie: 3+5=X).  I want to use Send Message to pass that array to a script function to turn those values into a string that will display to the user.

I have a Setup state that generates 3 random #'s and uses "Array Add" to add them to my int array.  In the next state, the Send Message is called that references my C3 script function and passes the array as a param.

Here's the issue I'm seeing: when I switch states between the two, my int array is losing its attribute settings (type changes from int to string, and size changes from 3 to 0)...  Is this a bug or am I just missing something?

thank you,
Jon
Title: Re: Array variable isn't persisting attributes
Post by: djaydino on June 14, 2020, 06:58:28 AM
Hi.
How are you getting / setting the arrays?
Probably you are not setting or getting the values correctly.

Here is a video about debugging with playmaker :