Jump to content
Sign in to follow this  
cbreedon

basic editing

Recommended Posts

Hi I very new to ArmA, never played OFP either... mainly Ghost recon. I have a question. How do you change things like the number of mags a soldiers has? I assume somehow I need to get into one of the pbo files somehow and change a number there.

Any help would be appreciated

Share this post


Link to post
Share on other sites

I am so new that I didn't know what section...

Is there a program that is used to edit the pbo files?

So magazines aren't in the addons folders with weapons, they are in the missions? Is magazine capacity not tied to solders but to missions? I assume that it was a general factor not mission specific. Can you not edit the number of mag a soldier carries in the editor feature of the game?

Share this post


Link to post
Share on other sites

Moving.

To unpack missions (and addons) I recommend you use cpbo from Kegetys ArmA Tools, you can find the latest version here.

The capacity of magazines a soldier can carry is indeed tied to a soldier (they can carry up to 16 Magazines).

How many you want to give them though can be set in the mission, either by using the addMagazine command in the init line of a unit, or by using a script that the unit is executing upon mission start.

You can edit the number of magazines a soldier carry like I described above but not more then 16 mags as this is hardcoded (I think, some addon guru correct me if I'm wrong here). smile_o.gif

Share this post


Link to post
Share on other sites
I am so new that I didn't know what section...

Is there a program that is used to edit the pbo files?

So magazines aren't in the addons folders with weapons, they are in the missions?  Is magazine capacity not tied to solders but to missions?  I assume that it was a general factor not mission specific.  Can you not edit the number of mag a soldier carries in the editor feature of the game?

The weapons/magazines a soldier carries by default (when you place it in the editor) is indeed decided by the pbo file. However you can change the stuff he has in the mission editor.

First you need to remove all this weapons:

type

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

In his init bar, now he will have no weapons whatsoever.

Now if you want to give him weapons you first need to look here to see the weapon classnames. When you have found your weapons classname you can add it to the soldier: But remember, always add the magazines first or the weapon wont be loaded at the start.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">removeallweapons this; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addweapons "M4AIM"; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9"

This will remove all his weapons and give him a m4 with iron sights and 3 magazines + 1 loaded M9.

Now you dont need to make a new addon which makes the mission easier to use in MP (as noone needs to download an addon to play it), and you dont fill up the addons folder of people with unnecesary stuff. smile_o.gif

Share this post


Link to post
Share on other sites

"removeallweapons this; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addmagazine "30Rnd_556x45_Stanag"; this addweapons "M4AIM"; this addmagazine "15Rnd_9x19_M9"; this addweapon "M9""

so is all this typed into the "initialization" box of the soldier whe you place him onto the map in the editor? or am I missing it?

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  

×