Checking a Table Value before Changing It
dominic.koponen
Member Posts: 22
Hello All,
So I have an actor that is a button which controls whether the music is on/off. My question is: Can I "check" what a TABLE value is before I decide to change it? I know you can check for an attribute in the attributes list, but can you check for it if its INSIDE a table?
For example: I want it to have a rule that says if the touch is pressed AND x-attribute is true (Music is on), then change table value to false (turn music off). And vice-versa, if the touch is pressed and x-attribute is false (Music is off), then change table value to true (Turn the music back on). I understand you can check what you want if the attribute is in the attributes list, but it doesn't seem that you can check any attributes that reside in the table.
When I try and create a rule to do this now, I seem to be getting the ability to only check the table name? Which does not seem to have any functionality for me. Any help will be greatly appreciated!
Thanks!
So I have an actor that is a button which controls whether the music is on/off. My question is: Can I "check" what a TABLE value is before I decide to change it? I know you can check for an attribute in the attributes list, but can you check for it if its INSIDE a table?
For example: I want it to have a rule that says if the touch is pressed AND x-attribute is true (Music is on), then change table value to false (turn music off). And vice-versa, if the touch is pressed and x-attribute is false (Music is off), then change table value to true (Turn the music back on). I understand you can check what you want if the attribute is in the attributes list, but it doesn't seem that you can check any attributes that reside in the table.
When I try and create a rule to do this now, I seem to be getting the ability to only check the table name? Which does not seem to have any functionality for me. Any help will be greatly appreciated!
Thanks!
Answers