How to ask Python if a sensor is activated, BGE?
Clearly  MessageSensor &amp; MouseSensor &amp; MessageActuator are undefined. And the controller is the one how activate de actuator.

import bge
cont = bge.logic.getCurrentController()
own = cont.owner
MessageSensor = cont.sensors['NameOfSensor']
MouseSensor = cont.sensors['NameOfSensor']
MessageActuator = cont.actuators['NameOfActuator']

if MessageSensor.positive or MouseSensor.positive:
    cont.activate(MesageActuator)