Page 1 of 1

+= and -= operators

Posted: Fri Apr 20, 2007 9:05 am
by Pierce
I don't know if this is more a core bug. I thought i could use the operators everywhere, but it seems they are only for variables not for e.g. members. I realized that a few minutes ago as i tried a

Code: Select all

weapon.hp -= 1;
which doesn't work if it is not

Code: Select all

weapon.hp := weapon.hp - 1;
So my simple question: Are these operators only for script variables?

Posted: Fri Apr 20, 2007 11:20 am
by MuadDib
Far as I know, correct. For variable/array etc