playMaker

Author Topic: Array List Get  (Read 4020 times)

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
Array List Get
« on: July 01, 2016, 02:52:28 AM »
I have a pool of game objects with fsms which access an Array List on another game object using the Array List Get action.

I get an "ArrayListGet : ArrayList undefined" error even though the array exists on the other object.

In the setup up portion of the "Get" the game object is specified using a global variable game object.

If I put the fsm on the game object with the array list and in setup put "Use Owner" instead it is able to find it.


How should I be specifying the game object that has the array if it's on another object?

Thank you.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array List Get
« Reply #1 on: July 01, 2016, 03:20:15 AM »
Hi,

 Maybe the value of the global variable isn't setup when the action executes?

Bye,

 Jean

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Array List Get
« Reply #2 on: July 01, 2016, 12:56:15 PM »
Thanks Jean,

The array exists since the pool objects are created from looping through it.

It finds the array if the fsm calling the "get" is on the same object as the array but throws an error is the "get" is coming from another object.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array List Get
« Reply #3 on: July 04, 2016, 03:10:37 AM »
Hi,

 Can you reproduce on an empty scene with two GameObjects ,one that has an arrayList Proxy and the other that tries to access it?

Bye,

 Jean

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Array List Get
« Reply #4 on: July 04, 2016, 02:47:40 PM »
Jean, you were exactly right. It isn't finding the array on the game object.

If I use a global game object variable it does find it but not if I use a game object instance.

I need to read more about what the difference between them.

Right now I don't quite get it.

Thank you.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array List Get
« Reply #5 on: July 05, 2016, 03:05:38 AM »
Hi,

 Can you package and send me the scene you are testing with?

 Bye,

 Jean

krane

  • Junior Playmaker
  • **
  • Posts: 63
Re: Array List Get
« Reply #6 on: January 25, 2017, 04:58:25 PM »
Was this resolved? I have the exact same problem.

If I have the array in a template it won't work, even if I make the game object that holds the proxy a prefab.

krane

  • Junior Playmaker
  • **
  • Posts: 63
Re: Array List Get
« Reply #7 on: January 25, 2017, 05:01:37 PM »
(follow up) If I switch from ArrayMaker to the default Array I can use array get on that just fine, so it is likely an issue with ArrayMaker.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Array List Get
« Reply #8 on: January 26, 2017, 01:32:14 AM »
Hi,

 you likely mixed up the access to the ArrayMaker source.

 But if you got it working it's good. I can't repro anything like that here, I can access ArrayMaker proxies fine within templates.

can you refine what won't work, what action are you using exactly and what proxy is it?


 Bye,

 Jean