playMaker

Author Topic: ArrayList Get Max Float  (Read 5674 times)

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
ArrayList Get Max Float
« 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?



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayList Get Max Float
« Reply #1 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

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • Flying Robot Studios
Re: ArrayList Get Max Float
« Reply #2 on: October 04, 2013, 03:01:49 AM »
Sure!

rik

  • Full Member
  • ***
  • Posts: 246
Re: ArrayList Get Max Float
« Reply #3 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

rik

  • Full Member
  • ***
  • Posts: 246
Re: ArrayList Get Max Float
« Reply #4 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

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: ArrayList Get Max Float
« Reply #5 on: November 18, 2014, 06:06:52 PM »
Check out Array list sort and Array list reverse.