PDA

View Full Version : Variables for Variables.


zarfang8
12-14-2009, 05:23 PM
I'd like to actually be able to make a variable for a variable. like, <WhichVariable> become true, which you could set as a parameter, and use for a method, like being able to push a box, but only once. you use a boolean variable for every box, and then have a method WorldPushBox with parameters set as which box and what variable. you would push that specific box and the boolean variable would change to, pushed=true. then when you push it, it will asked if has been pushed with a boolean variable. make any sence?

x2495iiii
12-15-2009, 12:31 AM
Sort of. You can't really do that with variables you create, but there are many built in variables, especially the seldom used properties, which allow this. I think this is the effect you wanted: