playMaker

Author Topic: check children  (Read 1247 times)

greg

  • Junior Playmaker
  • **
  • Posts: 68
    • View Profile
check children
« on: March 04, 2013, 11:38:14 AM »
Whats the simplest way to check if an object has a certain child object?
Couldn't figure out how to use "get next child" effectively..

Vallar

  • Junior Playmaker
  • **
  • Posts: 90
    • View Profile
Re: check children
« Reply #1 on: March 04, 2013, 12:43:09 PM »
I am not sure if this is what you are after:
There is an action in Playmaker called "Get Child" not "Get Next Child", you can feed it the parent (if the FSM is not attached to the parent) then on the second field there is the "Child Name", you can enter the name of the child you are after and you can even check for the tag if you want a certain tagged child from multiple ones and then you can store the result in an object variable created.

Hope that helps.

greg

  • Junior Playmaker
  • **
  • Posts: 68
    • View Profile
Re: check children
« Reply #2 on: March 04, 2013, 01:58:50 PM »
Thanks, maybe that will work.. i have several children: "door1", "door2", "door3"..etc, and was going to loop through each child checking its name against a string "door".. or even easier, if i could just loop through children trying to find one with a certain tag.. not sure how to go about it.