The scheduleevent doesn seem to work it keeps playing over and over again...
PHP Code:
if(actionprojectile2)
{
temp.pl = GetPlayerIndex(#p(0), #p(1));
if(temp.pl < 0)
{
this.int = int(random(0,3)+1);
showani(1,#p(0),#p(1),2,"bulletfx",1,2,3,NULL,NULL,NULL,"ricochet" @ this.int @ ".wav");
schedulevent( length , "GaniEnded", "" );
} else {
}
}
function onGaniEnded()
{
hideimgs( 1 , 2 );
}
NVM IT WAS SPELT WRONG LOL
THANKS MAN +rep osht cant..