Jump to content
Sign in to follow this  
vodka357

Newbe edit question

Recommended Posts

I want to add ammo crates with all available weapons and all ammo the game offers. Is there an easy way to do this without adding each weapon and ammo type by hand? I can seem to figure it out

Share this post


Link to post
Share on other sites

No, there is not an easy way. You must add them by hand. But you can write it once to script and use this script for every crate in game.

Share this post


Link to post
Share on other sites

Make a file fillbox.sqs (with i.e. notepad) containing

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

box = _this select 0

box addmagazinecargo etc

etc

etc

etc

<span id='postcolor'>

and place it in the mission directory. (Fill out). from within the mission (the init field of the box?) type

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[this] exec "fillbox.sqs"<span id='postcolor'>

Share this post


Link to post
Share on other sites

1) In Windows create text file crate.txt.

Edit this file and type :

_crate=_this select 0

_crate addWeaponCargo ["M16", 2]

_crate addMagazineCargo ["M16", 10]

exit

You must write lines with addWeaponCargo and addMagazineCargo for each weapon in game. You need names of weapons and magazines that can be find somewhere on OPF fan pages.

2) Rename file crate.txt to crate.sqs.

3) Move renamed file to folder with your mission.

It is : Operation Flashpoint\Users\nameofuser\missions\nameofmission

4) If OPF Editor put this line to init field of ammo crate :

[this] exec "crate.sqs"

Try to look around some fan pages tutorials.

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  

×