How do I trigger something when a game property equals a certain value?
So Here is what I have done.
myprop = own['prop'] if myprop == 50: own.applyRotation((0, 0, 0.5),True)
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
The script is checking if prop is an integer equal to 50, but the property is actually a string.
Change String to Integer in the Properties panel
if myprop == 50:
if myprop == '50':
Going forward if you enable the console (Window -> Toggle System Console) it will let you know when these sort of errors happen.