In my game, I parent and object to an enemy. I made so that when the enemy has a certain hp he disappears (end object). The problem is that the obejct parented to the enemy is also deleted that way. I tried to unparent it when the enemy is killed, but the object deletes before it unparents itself.
If you using logic bricks, make sure the “end object” actuator is placed AFTER the “remove parent” actuator in the actuator list.
If you are using Python, it is the same call removeParent() before endObject().