I’m helping out with a test game here:
I have an object CubeExplode, with a Boolean Property “TargetLock” False.
CubeExplode has a Message Sensor which sets TargetLock True when it receives a message from missletraceempty.py (which targets an object with ray sensor).
CubeExplode has a Property Sensor which uses two actuators to play a sound and RGB IPO, which both loop forever.
What is not working is that I want CubeExplode to listen for a Message Sensor to set TargetLock False and END the two Actuators (IPO Play and Sound Loop), so I have it connected to this script below and a Property Actuator.
# end Target Lock On Indicators cont=GameLogic.getCurrentController() lockonipo=cont.getActuator("Lockonipo") lockonsnd=cont.getActuator("Lockonsnd") GameLogic.addActiveActuator(lockonipo, 0) GameLogic.addActiveActuator(lockonsnd, 0)
However, this does not stop the Sound or IPO. I have tried directly connecting a Key Sensor to this script (and the Property set false actuator) to isolate the problem, but this does not work either.
Is there an “EndAcutator” sort of command or another way to do this?
Relevant .blend file is attached here (though this part of the logic is a bit of a mess now):