I’m a complete noob at python and it seems that this can’t be done with logic bricks (am I right?) so I’m asking help here :
I have a sphere that I do not control, and I need a spot to have the same world position + 5 on the Z axis.
I guess the python script would something like this but I don’t know exactly : :no:
scene = GameLogic.getCurrentScene()
objList = scene.objects
sphere = getObject.objList(“Sphere”)
light = getObject.objList(“Light”)
light.worldPosition = sphere.worldPosition [0, 0, 0+5]
I don’t have any skills in python, if someone could just check the script and repair it the best possible. :spin:
(sorry for the bad english)