I am working on a game in the blender game engine. I need to Position an empty, spawn an object at it, re-position it, and spawn another object. When I run my script it only appears to have activated once. I have recreated the scenario in another.blend file and the situation still persists.
Here is my code:
import bge cont = bge.logic.getCurrentController() own = cont.owner actu = cont.actuators['SpawnCube'] own.worldPosition = [4,0,0] cont.activate(actu) own.worldPosition = [-4,0,0] cont.activate(actu)