Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: raguelmoon on March 11, 2018, 01:03:44 PM
-
Hi everyone!
How to get minimum value from a array variable (say float[] distance)?
suppose I have a distance array consists of 4 values: distance[1, 2, 3, 4] and i want to get minimum values from it (which is 1) and save in another float variable.
Thanks in advance!
Ram
-
hi,
you will need to make a loop like on this sample :
(https://i.imgur.com/squOMgD.gif)
-
Thank you dear, but it is not working, are you sure the nodes are wired correctly?
-
Hi.
Oops i forgot to add an event on the float compare :
On 'Greater Than' add the "Not Lower" event.