Constrain Table Values?

So I understand how to use tables to change attributes using + or -. For example tableCellValue(Game.Sometable, 1,5)+90

However I am using this to change directions, is there an easy way to just tell it to change a number? For example if I am at 0 change to 90 not +90. Because I need to be able to just change the direction on the fly in game. It's a turret it's using collision detection laid out in a cross pattern. If an enemy gets within its detection area it fires in that direction.

Comments

  • CloDeviousCloDevious Member Posts: 5
    Oh sweet baby Jesus, I was making it harder than it really is. In the change table value I was putting in the whole tableCellValue function when all I had to do was type in what value I wanted..... feel kinda dumb moving on...
  • ironDanironDan Member Posts: 148
    We've all been there : ) lol
This discussion has been closed.