How to set location according to property?

Hi! I wanted to ask how to set location and rotation of object leading to properties xL, yL, zL, xR, yR, zR. Also how to read current position and rotation of object and write into theese properties? I need that for gamesave to save character location.


import bge


cont        = bge.logic.getCurrentController()
own         = cont.owner

print( own["prop1"] )
print( own["xL"] ) # don't  like this
own.worldPosition.x = own["xL"] # don't  like this

print( own.worldPosition )
print( own.<b>worldOrientation</b> )

own["pos"] = own.worldPosition
print( own["pos"] )




http://www.blender.org/api/blender_python_api_2_70a_release/bge.types.KX_GameObject.html#bge.types.KX_GameObject

Do this script do all or just a part of it?