Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jeanfabre on April 17, 2011, 09:58:10 AM

Title: CompoundArray for more elements?
Post by: jeanfabre 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
Title: Re: CompoundArray for more elements?
Post by: Alex Chouls 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...
Title: Re: CompoundArray for more elements?
Post by: human890209 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?
Title: Re: CompoundArray for more elements?
Post by: jeanfabre 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
Title: Re: CompoundArray for more elements?
Post by: human890209 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. :)
Title: Re: CompoundArray for more elements?
Post by: jeanfabre on September 26, 2017, 04:25:50 AM

 I haven't yet messed with drawers neither :)

 Bye,

 Jean
Title: Re: CompoundArray for more elements?
Post by: Meka Games 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
Title: Re: CompoundArray for more elements?
Post by: djaydino 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
Title: Re: CompoundArray for more elements?
Post by: Meka Games 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?
Title: Re: CompoundArray for more elements?
Post by: djaydino on November 16, 2021, 08:51:26 PM
Hi.
You can use 3 fsmArray maybe