playMaker

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

Flying Robot

  • Sr. Member
  • ****
  • Posts: 293
  • Od ton yebo redro
    • View Profile
    • Flying Robot Studios
ArrayList Get Max Float
« on: October 03, 2013, 05: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: 14119
  • Official Playmaker Support
    • View Profile
Re: ArrayList Get Max Float
« Reply #1 on: October 03, 2013, 11:05:45 PM »
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
    • View Profile
    • Flying Robot Studios
Re: ArrayList Get Max Float
« Reply #2 on: October 04, 2013, 12:01:49 AM »
Sure!

rik

  • Full Member
  • ***
  • Posts: 247
    • View Profile
Re: ArrayList Get Max Float
« Reply #3 on: October 30, 2014, 10:33:20 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?


can you make a sample scene for this

rik

  • Full Member
  • ***
  • Posts: 247
    • View Profile
Re: ArrayList Get Max Float
« Reply #4 on: November 18, 2014, 11:20:27 AM »
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: 686
    • View Profile
    • Assets
Re: ArrayList Get Max Float
« Reply #5 on: November 18, 2014, 04:06:52 PM »
Check out Array list sort and Array list reverse.