I need to add sensors, controllers and actuators by a Python Script. I already create the body by this python, properties and now a need to add sensors and other stuff. This is a automatic game engine cenario creator. Thanks for all the help that you can send.
I already went to this site, but which method I need to use to create a sensor, controller or actuator…? For example: obj.addActuator (I know that this isn’t exist, but I need something like this)…
Thanks for the answer and I hope that you can continue to help me…
there is a user by the name of Social - I suggest that you look to him for aid in this matter - for he (might) have the answers in which you seek :RocknRoll:
I’m sorry to say that there isn’t an Python API at the moment to create Logic bricks.
There is a patch to bring this functionality but it isn’t in a proper state: it doesn’t support any of the new logic bricks.
If you really need to have this functionality and know how to compile your own version of Blender, you can try to apply the patch yourself: https://projects.blender.org/tracker/?func=detail&aid=8135&group_id=9&atid=127