2010-10-11 22:25:28 +00:00
|
|
|
import bge
|
2009-10-29 11:26:44 +00:00
|
|
|
|
2011-01-26 07:54:27 +00:00
|
|
|
|
2009-10-29 11:26:44 +00:00
|
|
|
def main():
|
|
|
|
|
2010-10-11 22:25:28 +00:00
|
|
|
cont = bge.logic.getCurrentController()
|
2009-10-31 19:31:45 +00:00
|
|
|
own = cont.owner
|
|
|
|
|
|
|
|
sens = cont.sensors['mySensor']
|
|
|
|
actu = cont.actuators['myActuator']
|
|
|
|
|
|
|
|
if sens.positive:
|
|
|
|
cont.activate(actu)
|
|
|
|
else:
|
|
|
|
cont.deactivate(actu)
|
2009-10-29 11:26:44 +00:00
|
|
|
|
|
|
|
main()
|