playMaker

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

liuzhenli

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

terri

  • Sr. Member
  • ****
  • Posts: 347
    • View Profile
    • terrivellmann.tumblr.com
Re: Request find the closest object filter by a list of game objects?
« Reply #1 on: January 11, 2017, 10:49:40 AM »
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
    • View Profile
Re: Request find the closest object filter by a list of game objects?
« Reply #2 on: January 11, 2017, 07: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: 12113
  • Official Playmaker Support
    • View Profile
Re: Request find the closest object filter by a list of game objects?
« Reply #3 on: January 22, 2017, 11:21:53 PM »
Hi,

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

Bye,

 Jean