Jump to content
Sign in to follow this  
kallex

Campaign scripts

Recommended Posts

Hey,

This is my problem. I want to know where to place and what would be calling line for scripts that are used in many missions in campaign. I read some time ago on ofpec.com that there is a way, but how?

I can't check that tutorial on ofpec cause whole website is down.

These are just guesses, correct me.

I guess, scripts should go Campaign's DtaExt folder, am i right?

But then command line... Something like:

[] exec "..\Campaignname\DtaExt\Scripts\Scipt.sqs" <-- just wild guess.

I wrote this thread cause it's quite hard/slow to test it (need to make campaign every time) so please help. I know this is not so the most important thing, it just decrease file sizes and such. I find that usefull. If someone know, let me know.... wink_o.gif

Share this post


Link to post
Share on other sites

I've wondered this myself, but I have a guess that might be right.

When you make an addon .pbo, you execute scripts within that .pbo like this:

[] exec "\PBO_FILENAME\scriptname.sqs"

If you have folders within the .pbo, you just add the foldername and then another slash \.

So my untested theory is that a campaign or mission .pbo would work in the exact same way. So, depending on what your campaign .pbo filename is (that is, whatever the name of the folder you are putting it in is), it would look something like this:

[] exec "\CAMPAIGN_PBO_FILENAME\scripts\scriptname.sqs"

Let me know if it works.

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  

×