I have a trigger that get value $a from command hp.
In PHP, The code is
Function aaa()
{
$world->Excute('hp');//This command will get new value for $a
$world->DoAfterNote(2,$a);
}
But the result is The value of last time. It doesn't the value that had refreshed in 2s. I think The DoAfterNote only delay the display. But the content wasn't the result after 2s. Isn't it? Could you tell me which command can display real result.
In PHP, The code is
Function aaa()
{
$world->Excute('hp');//This command will get new value for $a
$world->DoAfterNote(2,$a);
}
But the result is The value of last time. It doesn't the value that had refreshed in 2s. I think The DoAfterNote only delay the display. But the content wasn't the result after 2s. Isn't it? Could you tell me which command can display real result.