Author Topic: Array variable isn't persisting attributes  (Read 238 times)


  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Array variable isn't persisting attributes
« on: June 13, 2020, 04: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,


  • Administrator
  • Hero Member
  • *****
  • Posts: 5436
    • View Profile
    • jinxtergames
Re: Array variable isn't persisting attributes
« Reply #1 on: June 14, 2020, 03:58:28 AM »
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 :