I tried many things but it didn't respond.How can i stop it when my health is less than 0??
That's my code but it didn't work:
Code: Select all
if (health<0)
{
anim = smgr->createFlyStraightAnimator(pos,core::vector3df(16000,350,18000), 0, false);
}
anim = smgr->createFlyStraightAnimator(pos,core::vector3df(16000,350,18000), 10000, false);
node->addAnimator(animaml);
anim->drop();
Thanks in advance!