LastRifleRound 0 Posted March 22, 2007 I wanted to add the Javelin to a mission, or maybe even get to use it in campaign. Everyone keeps talking about an "init" file. Where is this file? I've searched every forum and every game directory and cannot locate such a file. Share this post Link to post Share on other sites
W0lle 1052 Posted March 22, 2007 What you're looking for is how to add the Javelin to a soldier. For that you need to add something to the soldiers init line. Search this forums for 'Javelin' and 'addweapon' and I'm sure you find an explanation on how to add them. For that you don't need an init.sqs file. But to answer that question: The init.sqs file must be in your missions folder. If it doesn't exist you need to create it using a text editor. Please make your topic description more explaining next time. Share this post Link to post Share on other sites
fasad 1 Posted March 22, 2007 Init = Initialization Every unit has it's own initialization string, which is a block of scripting code that is executed as the mission begins. Every mission also automatically executes a script file named init.sqs as the mission begins, if it exists. Scripting code can accomplish many things that are otherwise not possible in the game, eg giving your unit a Javelin. I would not recommend using the Javelin at the moment, it does not work properly. See the wiki for more information about scripting Share this post Link to post Share on other sites
LastRifleRound 0 Posted March 22, 2007 I see. I had an earlier thread on this that was hi-jacked, and I was told to try the following script on an ammo truck (w/out quotes of course) truck addweaponcargo [javelin, 2] I get no error message in creating this script. It doesn't do anything either. The truck has the same loadout it would have had if I hadn't used any script at all. Share this post Link to post Share on other sites
VanhA 10 Posted March 22, 2007 Was there an error in 1.05 concerning Javelin? I mean, my loadouts in missions made in 1.04 where I added a javelin for soldier do not work anymore in 1.05.... Share this post Link to post Share on other sites
LastRifleRound 0 Posted March 22, 2007 Ok i've got this all sorted on my own. now how do you locate and edit the config files for ArmA? I'm going to see if I can fix the Jav and the assault rifles. Share this post Link to post Share on other sites
december 0 Posted March 22, 2007 On dedicated server You can add the javelin to an ammo box or truck you can't add it to a player. You can add it to a player in the editor tho and preview it. I think the Javelin works it just hasn't been finished yet. Share this post Link to post Share on other sites
Balschoiw 0 Posted March 22, 2007 Quote[/b] ] I'm going to see if I can fix the Jav and the assault rifles. Unless you´re really knowing what you´re doing I would keep my fingers from editing the configs. That´s no twiddledidumb thingie At least make sure you got a backup first. Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted March 22, 2007 Unless you´re really knowing what you´re doing I would keep my fingers from editing the configs. I couldn't disagree more. Jump in! That's the only way to learn it. At least make sure you got a backup first. This is excellent advice however. You don't want to reinstall the game because you messed up. Share this post Link to post Share on other sites
LastRifleRound 0 Posted March 22, 2007 I will definitely make a back-up! How do I get started? Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted March 23, 2007 First step is you need to do a bunch of searching through threads and stuff on ofpec to glean knowledge from them. Also, you're going to want to look up on ofpec and read what they have in the tutorials section. Although most/all of it undoubtedly it will directly apply to old ofp only. The knowledge carries over for the most part. You're going to want to look for stuff refering to configs and the like. Also, check your PMs Share this post Link to post Share on other sites