Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Angiel on May 02, 2019, 12:07:15 PM

Title: Order an array
Post by: Angiel on May 02, 2019, 12:07:15 PM
Hi
In the scene I have 3 cubes, red, black, blue. Each cube has a life variable associated with it.
Red cube life = 7, black cube life = 5, blue cube life = 12.
Is it possible with Playmaker to create an array (or list) that orders me cubes based on the life variable? So:
Blue cube life = 12
red cube life = 7
Black cube life = 5.
Thanks 1000!
Title: Re: Order an array
Post by: djaydino on May 02, 2019, 05:52:59 PM
Hi.
Maybe this tutorial can get you in the right direction :

Title: Re: Order an array
Post by: Angiel on May 05, 2019, 03:43:46 AM
Thank you for the link.