Jump to content
Sign in to follow this  
ALPHIVE

How make delay until being reactivating the script ?

Recommended Posts

Hi everybody ;)

 

I would know how to do like this :

 

***Script is repeatable***

 

I enter the trigger it activate the script (for exemple a speech)

I enter again 1 second after, the script doesnt activate

I enter again but 10 seconds after, the script activate

 

 

I mean that i would place a delay between each script activation of 10 seconds

 

 

Is it possible ?

 

 

Thank guys for your help ! :)

 

 

 

Share this post


Link to post
Share on other sites

Have the script have a variable such as 'WaitingTimer' have this sat in a if statement and another loop inside your main statement.

if(WaitingTimer <= 0) then { waitingTimer = 10; CODE ; for "_i" from 1 to _limit do {waitingTimer = WaitingTimer - 1; sleep 1;}} else {""};

for example?

Share this post


Link to post
Share on other sites

ok for exemple if i have initial script like

 

 

SOLDIER say3D "speech1"

 

 

I must do like :

 

if(WaitingTimer <= 0) then { waitingTimer = 10; SOLDIER say3D "speech1" ; for "_i" from 1 to _limit do {waitingTimer = WaitingTimer - 1; sleep 1;}} else {""};

 

Right ?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×