Find the lowest value in a column in a table?

owen_dennisowen_dennis Just a guy, you know.Member, PRO Posts: 236
edited February 2015 in Working with GS (Mac)

This is a slightly different question than the other missile question I asked, so I thought I'd start a new topic.

I've got a homing missile system I'm trying to set up and I'm using a table to track the location of randomly spawned enemies.
The table adds a new row with each new enemy who then broadcasts its position in the first and second column. The enemies are also indicating how close they are to my missile shooting hero in the third column.

How can I tell my missiles to always aim for the enemy that has the lowest number in that third column (as in, is the closest to my hero)?

Comments

Sign In or Register to comment.