Parenting an object useing logic bricks?

Ok so I need to be able to grab things in my game and was wondering if it could be possible to use the logic bricks to parent the item to grab it. Any Ideas?
found the solution sorry