How to get the ghost state of an object.

Hi there,

I have a small problem with parenting.

The default parameter of KX_GameObject.setParent() sets the child to be ghost while parented (acording to the BGE API).
This is not a big deal. Unfortunatly, I want to use that for the SaveLoader.
So when the stored state is restored the objects will be parented as it was at storing.

The effect is the the breviously non-ghost object is now a ghost.

I can’t find a function in the API to check if an object is ghost or not.

Does anyone knows how to check if an object is ghost while running the BGE?

Maybe I’m just blind and do not see it.

Thanks Monster

Does anyone knows how to check if an object is ghost while running the BGE?
Uhm… drop stuff on it?

That would be the i-have-no-idea-how-to-do-it-properly solution :smiley:

Yes that would work :). Unfortunatly it takes to long :frowning:

Then throw something at it instead lol.

Rays detect ghost objects, don’t they?