I'm trying to access variables I set in a world from a plugin.
I'm using this bit of code to try to get to the variable but it isn't working.
Any idea what's wrong?
Thanks,
Chris
I'm using this bit of code to try to get to the variable but it isn't working.
function drinkWater()
{
var cont_drink;
cont_drink = world.GetVariable("cont_drink");
world.execute("drink " + cont_drink);
}
Any idea what's wrong?
Thanks,
Chris