So, I’m looking for a python script that will randomly add an object from a list. So the python will link to an add object actuator. In the python script will be a list of object names (For example “OBCube1” “OBCube2” “OBCube3” ) then the python will select one of these randomly.
I was thinking that each object would have an index and the random function would spit out a number (Between 1 and 5 say) and the object with the matching index would then get passed along to the add object actuator.
I would do this with logic bricks, but as this is going to have to be done multiple time for many different places, it will get very hard to keep track of with logic bricks. I really need help with this because I really don't know python that well. This could have numerous uses and might be good for the resource forum if it works! :)