Cant figure out how objects from add object actuators are named.
Say I want to draw a line from one cube to all the other cubes that are added to the game scene from an object actuator. I set up a scrip on the cube I want all the lines to be drawn to.
render.drawLine(cube1.worldPosition, cube.worldPosition, [1,0,0])
‘cue’ is the name of the cube added to the first layer from the second layer through an add object actuator. (‘always’-‘and’-‘edit object’ in logic bricks)
‘Cube’ is the static cube I want the all the ‘cue’ cubes lines to be drawn to.
Problem: only the first cube that pops in to the scene gets a line. Why is this? How could I get all the cubes to have a line? (Do the added cubes have a different name?)