Jump to content
Sign in to follow this  
LastRifleRound

How to add a Javelin to a soldier

Recommended Posts

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

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. wink_o.gif

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. smile_o.gif

Share this post


Link to post
Share on other sites

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

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

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.... banghead.gif

Share this post


Link to post
Share on other sites

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

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
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
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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×