Hey again, newbie speaking.
I'm trying to do this:
sub testing
{
if ($world->getvariable("test") =~ 1)
{
$world->doafter(10, $world->setvariable("testing", "1") );
$world->note($world->getvariable("testing"));
}
}
The problem here is that it sets the variable testing to 1 immediately, it doesn't wait 10 seconds. hence, the $world->note will show "1" instead of 0.
Any way to correct this?
Thanks in advance.
I'm trying to do this:
sub testing
{
if ($world->getvariable("test") =~ 1)
{
$world->doafter(10, $world->setvariable("testing", "1") );
$world->note($world->getvariable("testing"));
}
}
The problem here is that it sets the variable testing to 1 immediately, it doesn't wait 10 seconds. hence, the $world->note will show "1" instead of 0.
Any way to correct this?
Thanks in advance.