I’m making a tank object, which will be run by a single script, which controls all its actuators and does everything neatly within methods. When a tank object is instantiated, it is added to the GameLogic module in a list and can be found by checking its unique ID.
ANYWAY. I’m currently integrating a particle effect into a method called “explode()”, which will make the tank appear to explode. The problem is that the method doesn’t seem to recognise that range() is a function in this method, and not a global variable as it believes. Can you work out what I’m doing wrong?
Thanks for your help.
classExample.blend (155 KB)