This code doesnt work: (also the name of my element is GMPR if you cant tell.)
Thx!
Jerehmia:
You're using a constant, so the right syntax is
sim.PartProperty(i, sim.FIELD_TMP2, 1)
To increment you have to read the value, add 1 to it and write it back:
sim.PartProperty(i, sim.FIELD_TMP2, sim.PartProperty(i, sim.FIELD_TMP2) + 1)
He's right. I have no idea why would you put a string there. That's not how coding works!