Timer won´t work

Started by Mouth for war, Mon 24/10/2005 18:11:47

Previous topic - Next topic

Mouth for war

ok it's like this. I've got a guy laying on a beach, passed out...after a few seconds i want to display a message
this is how the script looks like...why won't it work?

  // script for Room: First time player enters screen
SetTimer(1,3000);
if (IsTimerExpired(1)== 1)  {
DisplayMessage(1);


mass genocide is the most exhausting activity one can engage in, next to soccer

GarageGothic

You will have to call IsTimerExpired in the Repeatedly_Execute. If you call it in the First Time player enters screen script it will only check once, in the very first cycle (and thus never get to 3000).

Mouth for war

i tried that to but...no message appearing
mass genocide is the most exhausting activity one can engage in, next to soccer

Ashen

#3
[obvious]You didn't put the timer declaration (SetTimer(1,3000);) in rep_ex as well, did you?

Also, are you waiting long enough? Assuming you haven't changed the game speed, 3000 loops is 1min 15, a little longer than 'a few seconds' in my book.[/obvious]

EDIT: So, I'm guessing one of them did it?
I know what you're thinking ... Don't think that.

Mouth for war

#4
ah ok...thanks
mass genocide is the most exhausting activity one can engage in, next to soccer

Mouth for war

#5
That works fine but...when the message has been displayed i want to play an animation of the character standing up...but the scripteditor have no "play quickanimation" function...or am i just a total newbie?

Edit:
got it working...you may lock this thread now. Thanks!!! ;D
mass genocide is the most exhausting activity one can engage in, next to soccer

SMF spam blocked by CleanTalk