erROAR
(erROAR)
1
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.
w0onka
(w0onka)
2
GameLogic.setActiveActuator(delete ,1) ???
erROAR
(erROAR)
3
No luck. The closest thing I can find is setExecutePriority()
erROAR
(erROAR)
4
This is preventing me from moving any further. Any help would be appreciated quite a bit.
Sim88
(Sim88)
5
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.
MolFlesH
(MolFlesH)
6
It’s not “GameLogic.setActiveActuator( , )” but “GameLogic.addActiveActuator( , )”.
cont = GameLogic.getCurrentController()
delete = cont.getActuator("delete")
GameLogic.addActiveActuator(delete,1)
erROAR
(erROAR)
7
<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)