Access other objects and their properties with python.

So if you want to get the object’s properties that has the script you just do this:

import bge
cont = bge.logic.getCurrentController()
scene = bge.logic.getCurrentScene()
own = cont.owner
keyboard = cont.sensors['Keyboard']
own["XYZ"] = asda

and so on. But what if I want to reach another object’s properties and change that?

 OptObj = scene.objects[own["OPTIONS"]]
OptObj["ANIM"] = OFF

but didn’t work.