I made a simple Body Clean up script so that it removes all of the dead bodies in the map every 10 seconds. But Blender crashes whenever I run the script. Im pretty sure it has something to do with importing Time into blender.
from time import sleep
cont = GameLogic.getCurrentController()
own = cont.getOwner()
remove = cont.getActuator(“remove”)
sleep(10) remove.setSubject("remove") sleep(2) remove.setSubject("")
Any ideas of what to do. Maybe an alternate way of going about this. Maybe one of those Timer/ Interval property things will work, I dont knwo how those works and this seemed simpler.
Thanks to all those who help :S