Still learning the basics here, and have come up against a small problem. As I mentioned in my previous thread, I’m trying to make a small bomberman clone, which has left me with two main problems: one, duplicating objects with ghost properties, I’ve set aside for the moment, and the second I am now trying to deal with is ending objects from a python script.
I’ve got my bomb object in a second layer and have given it a timer property of boom. When I hook this up directly to an end object actuator via an expression controller boom > 5, it disappers as expected. However, I need to write a python script to handle removing the blocks it can destroy via a ray sensor, so I need to migrate that functionality into a script.
I think I’m doing it correctly - I see no errors in the consol - but the bomb objects refuse to be destroyed. Do I need anything other than:
endObject = cont.getActuators(“myEndObjectActuator”)
Any help appreciated!