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"] )
Do this script do all or just a part of it?