Jump to content
Sign in to follow this  
icfhoop

Stop a script

Recommended Posts

Hello all, I am currently working on a defense mission but i am stuck on one thing, and that his how do I make a script stop? Here is the script, cause I want it to end after about 5 min so here is the script....

; ****************************************************************

; Script file for Armed Assault

; Created by: TODO: Author Name

; ****************************************************************

#loop

Playsound "incoming1"

~6

goto "loop"

Share this post


Link to post
Share on other sites

I am not quite sure of this either?

it might be add in:

~300

goto "end"

#end

Exit

Share this post


Link to post
Share on other sites
Hello all, I am currently working on a defense mission but i am stuck on one thing, and that his how do I make a script stop? Here is the script, cause I want it to end after about 5 min so here is the script....

; ****************************************************************

; Script file for Armed Assault

; Created by: TODO: Author Name

; ****************************************************************

#loop

Playsound "incoming1"

~6

goto "loop"

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_t = 0;

#loop

_t = _t + 6;

Playsound "incoming1";

~6

?(_t < 300): goto "loop";

exit;

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  

×