Jump to content
Sign in to follow this  
Rexxenexx

Creating an intro on/off switch?

Recommended Posts

I remember some OFP missions had the ability to turn the intro on and off in MP. I have one sqs file (intro.sqs) that I execute with init.sqs to play all the intro cam and music etc. I guess my question is how do I make a checkbox labeled "turn off intro" that sets introOff = true. Then I could put "?introOff:exit" at the top of the intro.sqs? Sound right?

Share this post


Link to post
Share on other sites

There's a 6 player coop mission called for his majesty's service that does that. I would suggest unpacking that to see how it was done. Also, it's a pretty fun mission, so give it a shot wink_o.gif.

Share this post


Link to post
Share on other sites

easy enough. biggrin_o.gif

Just put:

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

titleParam1 = "Intro?";

valuesParam1[] = {1, 2};

defValueParam1 = 1;

textsParam1[] = {"Yes","No"};

into the description.ext and then put a trigger that executes the intro.sqs file with the condition "Param1 == 1". Thats it!

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  

×