Actuating Actuators with Python - Solved

This one is probably very simple, but I’m still lost. I have this setup:

|Keyboard(space) |----------|Script(test)|-----------|Edit Object(Delete)|

import GameLogic
cont = GameLogic.getCurrentController()
delete = cont.getActuator("delete")

How do I actually actuate “delete”? I searched around, but I didn’t find anything. Thanks for any help.

GameLogic.setActiveActuator(delete ,1) ???

No luck. The closest thing I can find is setExecutePriority()

This is preventing me from moving any further. Any help would be appreciated quite a bit.

doesn’t seem to be any, strange.
You could always make it switch a property from false to true which execute the end object with logic bricks.

It’s not “GameLogic.setActiveActuator( , )” but “GameLogic.addActiveActuator( , )”.


cont = GameLogic.getCurrentController()
delete = cont.getActuator("delete")
GameLogic.addActiveActuator(delete,1)

<edit> Just saw your reply, MolFlesH. Thanks a bunch! </edit>

Ooh, I figured it out. It’s just this:


cont = GameLogic.getCurrentController()
own = cont.getOwner()

funvariable = cont.getActuator("controllername")
GameLogic.addActiveActuator(funvariable, True)