Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Flying Robot on October 03, 2013, 08:25:04 AM

Title: ArrayList Get Max Float
Post by: Flying Robot on October 03, 2013, 08:25:04 AM
Returns the Gameobject within an arrayList which have the maximum float value in its FSM. Also returns the index and the max float value.

Supposedly, you want to find the gameobject in an arraylist which have the Max value of particular float variable in its FSM this action will come handy. Like, you have an Arraylist full of Enemies, which one has the max health?


Title: Re: ArrayList Get Max Float
Post by: jeanfabre on October 04, 2013, 02:05:45 AM
Hi!

 Excellent! Can I add it to the package? you'll get full credit of course!

bye,

 Jean
Title: Re: ArrayList Get Max Float
Post by: Flying Robot on October 04, 2013, 03:01:49 AM
Sure!
Title: Re: ArrayList Get Max Float
Post by: rik on October 30, 2014, 01:33:20 PM
Returns the Gameobject within an arrayList which have the maximum float value in its FSM. Also returns the index and the max float value.

Supposedly, you want to find the gameobject in an arraylist which have the Max value of particular float variable in its FSM this action will come handy. Like, you have an Arraylist full of Enemies, which one has the max health?


can you make a sample scene for this
Title: Re: ArrayList Get Max Float
Post by: rik on November 18, 2014, 01:20:27 PM
HI can you make new action to sort int and float variables like

say :
10 float values contain some random number stored.
i like to retrieve  values in sorted information manner
say i need information a- z is higher value first and z-a lower value first.
it is used in high scores
Title: Re: ArrayList Get Max Float
Post by: escpodgames on November 18, 2014, 06:06:52 PM
Check out Array list sort and Array list reverse.