Jump to content

Delay Script


bencebence

Recommended Posts

Hey everybody!

I would need some help. I wanted to add a little thing to one my scripts, that would delay the time between using the script, so you can't spam it.

I know of the command that delays the quest scripts, but this one is an object script. Any ideas?

Thanks in advance,

bencebence

Link to comment
Share on other sites

Declare this variable:

 

Float fQuestDelayTime

 

Then set it to whatever you want at the start of the script. I know that your script is for objects, but I think it still works.

 

If it doesn't , then make a timer for however long you want the delay to be, using "GetSecondsPassed" to increment the timer.

 

Scn SCRIPT

Float Timer

If Timer > 0
    Set Timer to ( Timer - GetSecondsPassed )
    Return
Else
   ;;;[Do stuff]
   Set Timer to [insert time]
endif

Link to comment
Share on other sites

  • Recently Browsing   0 members

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