playMaker

Author Topic: Request find the closest object filter by a list of game objects?  (Read 1941 times)

liuzhenli

  • Playmaker Newbie
  • *
  • Posts: 4
hello,
may i request an action that  find the closest object filter by a list of game objects?
 :)

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Request find the closest object filter by a list of game objects?
« Reply #1 on: January 11, 2017, 12:49:40 PM »
you could use an array! there is a get closest from array action
(I know its not what you want but thought it could help)

liuzhenli

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Request find the closest object filter by a list of game objects?
« Reply #2 on: January 11, 2017, 09:52:25 PM »
hmm. i dunt think it works for me..because imma using this action to find a object that may have same layer and tag with another one(closer) :(

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Request find the closest object filter by a list of game objects?
« Reply #3 on: January 23, 2017, 01:21:53 AM »
Hi,

 you'll need to use ArrayMaker, it has a action called ArrayListGetClosestGameObject and one called ArrayListGetClosestGameObjectInSight

Bye,

 Jean