playMaker

Author Topic: Arraymaker : find and store array list from object  (Read 4178 times)

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
Arraymaker : find and store array list from object
« on: August 16, 2015, 01:46:17 PM »
Hello everybody!

I am currently trying to find a way to store an array list reference other than "find array list", witch will go through every gameobjects in the scene to find the list.

Is there an action that does the same thing but with the ability to make it look for the array only on a precise gameobject?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Arraymaker : find and store array list from object
« Reply #1 on: August 16, 2015, 01:50:40 PM »
Hi,

You would simply use the "reference" property, that's all there is to it. Storing the "reference" in a FsmString is only what's needed to target a specific ArrayList on a given GameObject.

 Bye,

 Jean

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
Re: Arraymaker : find and store array list from object
« Reply #2 on: August 16, 2015, 01:59:37 PM »
Hi jeanfabre!

Thanks for the response, I'm sure it will be useful for other people looking for responses!

However, what I'm trying to achieve here is to store the "reference", in order to tell dynamically to a FSM witch list it should go through, without it being to heavy (not "find array list" every time the list must change, neither doing states duplicates for each possible lists).

If there was an action to store the list reference on the owner object, it would be really fast to set that up!

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Arraymaker : find and store array list from object
« Reply #3 on: August 17, 2015, 10:49:36 AM »
I am not sure how to set up a way to grab the reference of an array since a gameobject can have any number of arrays but an alternative would be to have strings set up in your gameobject listing all the arrays you have created or added and grab those from the gameobject.

So if another FSM is looking for it you would grab that object and get fsm string - (array string variable) and then do the action for the array.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
Re: Arraymaker : find and store array list from object
« Reply #4 on: August 17, 2015, 09:05:12 PM »
Thank you Sebaslive! :-)

Your method is working perfect!

And since you're both there, I'd like to thank you both (jeanfabre and sebaslive) for your work, you really made game creation possible for me!

By the way, just a litle off-topic question, but are you both french?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Arraymaker : find and store array list from object
« Reply #5 on: August 17, 2015, 11:55:39 PM »
Hi,

 I don't know about SebasLive, but I am yes :)

 and while we are on this, I am working on opening a french forum dedicated to PlayMaker, I'll make an anouncement when it's available.

 Bye,

 Jean

Arnoob

  • Junior Playmaker
  • **
  • Posts: 63
Re: Arraymaker : find and store array list from object
« Reply #6 on: August 18, 2015, 12:26:56 AM »
Hi Jeanfabre!

Sure thats would be a great initiative!  :D
Will this forum be on a particular topic or will it be just like this one?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Arraymaker : find and store array list from object
« Reply #7 on: August 18, 2015, 02:10:34 PM »
Hi,

 everything PlayMaker related.

 Bye,

 Jean