
parent
- Returns the parent object
Return Type:
- KX_GameObject
Note:
- Returns None if there isn't a parent.

Sample Code
################## get the game object's parent
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# get parent
obj_par = obj.parent