Switch Cameras via "GUI"

Hey guys, i’ve written a script that enables me to switch between two cameras when clicking on some cubes,

here’s the script :

controller=GameLogic.getCurrentController()

bottomSensor=controller.getSensor(“bottom”)
topSensor=controller.getSensor(“top”)

currentCam=controller.getActuator(“Camera”)

if bottomSensor.isPositive() :
currentCam.setCamera(“OBmainCam”)
print currentCam.getCamera()

if topSensor.isPositive() :
currentCam.setCamera(“OBsideCam”)
print currentCam.getCamera()

GameLogic.addActiveActuator(currentCam,1)

the problem i have is that even tho the console prints out the correct camera, the actual camera only changes the first time i click on a cube :frowning: got any suggestions?

edit : the identation doesn’t seem to read in the forum, but my script is properly idented

FIXED : just needed a mouse over sensor, i’m such a dummy