cont = GameLogic.getCurrentController()
own = cont.getOwner()
bar = GameLogic.getObject("healthmeter")
meter = bar.getOwner()
i need to do something like this
this does not work
how?
cont = GameLogic.getCurrentController()
own = cont.getOwner()
bar = GameLogic.getObject("healthmeter")
meter = bar.getOwner()
i need to do something like this
this does not work
how?
I don’t think the gamelogic module has a get object method
I’ve always linked the logic bricks so I could access other objects
that is, link a sensor or an actuator from bar to your python controller [in another object], then set bar to that sensor or actuator .getOwner()