Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gamelogic_basic.py « templates « scripts « release - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c9c2a5943090c0fb9ab626a3a5a6db67e62c2f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

def main():

	cont = GameLogic.getCurrentController()
	own = cont.owner
	
	sens = cont.sensors['mySensor']
	actu = cont.actuators['myActuator']
	
	if sens.positive:
		cont.activate(actu)
	else:
		cont.deactivate(actu)

main()