Jump to content
Sign in to follow this  
ScreamingWithNoSound

Scripts Directory

Recommended Posts

If you create a directory called "scripts" in your OFP directory, you can put all your custom, commonly used scripts into it and then just use the name of the script when you call it.

I found this out by accident (typically), but it is soooo cool! OFP will automatically compile the script into the completed mission file when you export it, so you'll never have to mess about moving scripts into your missiong directory ever again!

Share this post


Link to post
Share on other sites

Cool indeed, this can be very useful. After reading your post, I scanned the official BIS reference and found this under the exec command:

"Script is first searched in mission folder, then in campaign scripts subfolder, last in global scripts folder."

One thing that I found out is that you can create subfolders within your mission folder and put your scripts in there. When calling the script you have to include the path, like

[] exec "myscripts\barrage.sqs"

Spinor

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  

×