OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kingneb on 24 Apr 2003, 02:09:44

Title: script exiting
Post by: kingneb on 24 Apr 2003, 02:09:44
how do you exit a script when you execute another?
Title: Re:script exiting
Post by: Artak on 24 Apr 2003, 07:52:36
type exit in your script?
Title: Re:script exiting
Post by: macguba on 24 Apr 2003, 11:11:09
If you mean that you want scriptB to control when scriptA ends, use a variable

scriptA
--------
#loop
~1
blah blah
? endA:exit
goto "loop"


scriptB
--------
endA=true
Title: Re:script exiting
Post by: macguba on 24 Apr 2003, 11:41:54
Oh shit, you've done it again. (http://www.ofpec.com/yabbse/index.php?board=11;action=display;threadid=8929)

Never post a question on two boards.    If it's on the wrong board, a mod will move it.   If it's one of these questions that could go on either, then choose.  If you don't get an answer on one then, if you ask a mod very nicely, they might consider moving it for you.

One problem = one thread