Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Sjones on April 26, 2013, 11:57:17 AM

Title: return lowest float from a set of variables.
Post by: Sjones on April 26, 2013, 11:57:17 AM
I need to get the lowest number from several float variables - can someone make a script or point me in the direction using existing actions.

thanks.
Title: Re: return lowest float from a set of variables.
Post by: Maart on April 26, 2013, 06:21:47 PM
Put your floats in an array.
Sort the array.
Get the one on the top.
Title: Re: return lowest float from a set of variables.
Post by: jeanfabre on May 13, 2013, 06:29:59 AM
Hi,

 Yes, simply use ArrayMaker for this:

https://hutonggames.fogbugz.com/default.asp?W715

One could build a custom action for this to avoid the overhead of using ArrayMaker. Tell me if you can't make it happen, I'll do a simple custom action.

bye,

 Jean