Hi!
Now, I'm making here a thing where when idle/hasn't shot for more than 10 seconds, the Pov hands start to do stuff... Now, after the 10 seconds, the hands move. After a few more seconds, I expect hands to move. 8, 9, 10, 11, 12... Nothing! It seems like if the IF(time==10) was made to run only once! WHY? HELP! But, after firing and waiting another 10 seconds, they move! What's the problem?
/Edward
Code:
symbols
...
int time=0 local
...
end
code
...
fire:
...
time=0;
...
pulse:
time=time+1;
printint(time);
if(time==10)
{
jkPlayPOVKey(player,povboredAnim0[rand()*2],1,0x38);
time=rand()*8;
}
return;Now, I'm making here a thing where when idle/hasn't shot for more than 10 seconds, the Pov hands start to do stuff... Now, after the 10 seconds, the hands move. After a few more seconds, I expect hands to move. 8, 9, 10, 11, 12... Nothing! It seems like if the IF(time==10) was made to run only once! WHY? HELP! But, after firing and waiting another 10 seconds, they move! What's the problem?
/Edward
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
. After all, "time is of the essence"...
)
...