Get a Property value via Python?

Hello everyone,

I’m just wondering; How would I go about setting a Python Variable equal to an Integer from a Game Property added to an Object?

I mainly want the script to constantly (every logic tic) check the value of an integer property. It’s game related.

Thank you to anyone who replies!

If it is a property wouldn’t you just reference it like so…?

my_var = ob["my_property"]


ob["my_property"] = my_var

Thank you, Atom.

I thought this was it, but for some reason it didn’t seem to work. I’ll try it again and let you know.