alonsomartinez Posted February 22, 2010 Share Posted February 22, 2010 Im having a bit of trouble with getseconds passed . I have been following the create a timer tutorial on the CS page but It doesnt seem to work for me.I have tried several different ways but none of them seem to work.Heres my script Scn timerpractice float timer short doOnce begin onactivate if ( doOnce == 0 ) set timer to 10 set doonce to 1 endif if ( timer > 0 ) set timer to timer - getsecondspassed else Messagebox " Is this working " endif end I even did the whole fquestdelaytime and everything and nothing seems to happen whatever I do.Here is the link . Help please Kudos to whoever helps Link to comment Share on other sites More sharing options...
Vagrant0 Posted February 22, 2010 Share Posted February 22, 2010 Im having a bit of trouble with getseconds passed . I have been following the create a timer tutorial on the CS page but It doesnt seem to work for me.I have tried several different ways but none of them seem to work.Heres my script Scn timerpractice float timer short doOnce begin onactivate if ( doOnce == 0 ) set timer to 10 set doonce to 1 endif if ( timer > 0 ) set timer to timer - getsecondspassed else Messagebox " Is this working " endif end I even did the whole fquestdelaytime and everything and nothing seems to happen whatever I do.Here is the link . Help please Kudos to whoever helps Remove the ( ) and try. Link to comment Share on other sites More sharing options...
Argomirr Posted February 22, 2010 Share Posted February 22, 2010 The problem is that you're using an OnActivate block, which only runs once when activated. In order for this to work, you need to add a GameMode block: Scn timerpractice float timer short doOnce begin onactivate if doOnce == 0 set timer to 10 set doonce to 1 endif end Begin GameMode if ( timer > 0 ) set timer to timer - getsecondspassed else Messagebox " Is this working " endif end Link to comment Share on other sites More sharing options...
alonsomartinez Posted February 23, 2010 Author Share Posted February 23, 2010 Thankjs Ill try it right now.Its good to have people helping you out on scripts when you get stuck. Link to comment Share on other sites More sharing options...
Recommended Posts