Jump to content

Time doesnt Fly


alonsomartinez

Recommended Posts

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...