playMaker

Author Topic: Detach Child [SOLVED]  (Read 2296 times)

greg

  • Junior Playmaker
  • **
  • Posts: 68
    • View Profile
Detach Child [SOLVED]
« on: February 22, 2013, 07:54:49 AM »
So there's a "detach children" block, but how do i detach a single child?

Basically i have a room, with a bunch of doors parented to it. I want to make one of the doors the rooms parent - but it wouldn't work, and i suspected because the door was a child of the room, so i'd have to detach it first. But i want all the other objects still parented to the room.

Thanks
« Last Edit: March 10, 2013, 10:15:02 PM by Alex Chouls »

Red

  • Hero Member
  • *****
  • Posts: 563
    • View Profile
Re: Detach Child
« Reply #1 on: February 22, 2013, 01:26:08 PM »
If i'm understanding this correctly, you could use the "Set Parent" action and leave the "parent" field as blank... I've used that to detach grenades from the "Grenade pool" system i've got set up so that it can then be acted upon without risking altering any of the other items in the pool or the pool itself.

greg

  • Junior Playmaker
  • **
  • Posts: 68
    • View Profile
Re: Detach Child
« Reply #2 on: March 04, 2013, 11:34:15 AM »
Didn't think of that. Thanks :)