Hi Sven,

----- Original Message -----
> From: "Sven von Brand" <[email protected]>
>
> I added the logic brick with
> bpy.ops.logic.sensor_add(type='ALWAYS',name="Name",object="Cube") and
> supposed there was something like
> bpy.ops.logic.link(sensor="",sensobject="", controller="",
> contobject="") but could not find anything like it.

Try something like this:

ob.game.sensors['Name'].link(ob.game.controllers['And'])

where ob is the object you added the bricks to.

Cheers,
Alex
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to