playMaker

Author Topic: CompoundArray for more elements?  (Read 4783 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
CompoundArray for more elements?
« on: April 17, 2011, 09:58:10 AM »
Hi,

 I am not sure I understand how CompoundArray works. You can find an example of its usage here:

https://hutonggames.fogbugz.com/default.asp?W442

 I want to have several fields or different types, not just two. it seems that it is harcoded to two. Is that the case?

 bye,

 Jean

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: CompoundArray for more elements?
« Reply #1 on: April 17, 2011, 10:40:43 AM »
Right now it's just 2, but we're looking into supporting custom types in the action editor (so you could group parameters together, then make an array of that custom type). This will be more flexible than compound array...

human890209

  • Junior Playmaker
  • **
  • Posts: 62
Re: CompoundArray for more elements?
« Reply #2 on: September 15, 2017, 04:49:15 AM »
Hi,
Recently I came across the problems of CustomType and Compound Array. Is there a way out now?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: CompoundArray for more elements?
« Reply #3 on: September 18, 2017, 02:25:06 AM »
Hi,

 right now you have a propertydrawer system in place inside PlayMaker, I haven;t played yet with it but it's likely the way to go to provide complex interfaces coupled with compound arrays.

Let me know how it goes, if you can;t make it happen, I'll do a quick sample, as I also want to see how it works... :)

 Bye,

 Jean

human890209

  • Junior Playmaker
  • **
  • Posts: 62
Re: CompoundArray for more elements?
« Reply #4 on: September 21, 2017, 09:53:38 PM »
Hi! Jean,
I'm not a programmer, my action is modified from the official ones. And the language in which I write my own action is based on everything I learned from reading the existing actions. So without your sample, I really have no idea how the Drawer is used.  :P  Please don't count on me. :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: CompoundArray for more elements?
« Reply #5 on: September 26, 2017, 04:25:50 AM »

 I haven't yet messed with drawers neither :)

 Bye,

 Jean

Meka Games

  • Junior Playmaker
  • **
  • Posts: 57
Re: CompoundArray for more elements?
« Reply #6 on: November 10, 2021, 06:21:37 PM »
Bump. How can I do that? Or Is It possible?
I'm trying to add "store rotation" as a new field to this action.
https://hutonggames.com/playmakerforum/index.php?topic=9274.0

For something like this I need:
[CompoundArray("Variables", "GameObject", "Store Position","Store Rotation"))]

I also checked this thread:
https://hutonggames.com/playmakerforum/index.php?topic=3979.0
« Last Edit: November 10, 2021, 06:32:29 PM by Meka Games »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: CompoundArray for more elements?
« Reply #7 on: November 11, 2021, 08:50:13 PM »
Hi.
@ Meka Games
A compound array can hold only 2 array's

But what you could do is use 3 array variables

Meka Games

  • Junior Playmaker
  • **
  • Posts: 57
Re: CompoundArray for more elements?
« Reply #8 on: November 12, 2021, 05:20:58 AM »
Hi.
@ Meka Games
A compound array can hold only 2 array's

Is there any way to do this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: CompoundArray for more elements?
« Reply #9 on: November 16, 2021, 08:51:26 PM »
Hi.
You can use 3 fsmArray maybe