Jump to content
Sign in to follow this  
Sira

Civilian Units

Recommended Posts

Except the women... and the priest. As far as I know.

Share this post


Link to post
Share on other sites

Thank you both very much for the the info.

Any chance you could kindly point me to an example of that addweapon command, if possible to select specific weapons.

Edited by Sira

Share this post


Link to post
Share on other sites

@Sira

removeallweapons this; this addmagazine "30Rnd_556x45_Stanag"; this addweapon "M16A2"

ect. you can find more weapons at armaholic.com

Share this post


Link to post
Share on other sites

removeallweapons this; is only needed IF the unit already has a weapon in its hands. If you just want to change a units weapon you can use this removeweapon "xxx" to remove the weapon and then you put a ; as sweguy96 has in his example and then : this addweapon "newweapon". This if they use the same ammunition. There is also a code: this removemagazine which removes the mag. You can combine all of these to add the weapon you want for the unit.

Share this post


Link to post
Share on other sites

thanks a lot guys :bounce3:

Share this post


Link to post
Share on other sites

Unfortunately this isn't as straight forward as I thought.

The Weapon and Mag. names that have to be specified don't correspondent with the names in the Item list.

Where can I find the correct names? I'm trying to use this also with RH weapon addons.

Thx

Share this post


Link to post
Share on other sites

You could PM RH for the classnames of the guns and mags.

Share this post


Link to post
Share on other sites

Sira, just look in editor dropdown menus, some fractions do have armed civilians already ready to drop in....should be in Resistance and OPFOR, both for Chernarus and Takistani people.

Share this post


Link to post
Share on other sites

If there is no classname list for whatever addon you use, you can use this script, which shows all information about the units (including the classnames) by just looking at them:

ShowClass by Cyborg11

Edit: And instead of having to write down all classnames there is also the option in the action menu (move mouse wheel) to save all the data into the Arma2.rpt file. So you can copy the classnames out of there directly - saves some work. :)

Edited by Undeceived

Share this post


Link to post
Share on other sites

Wow, thanks a lot guys, very helpful.

@Sira

removeallweapons this; this addmagazine "30Rnd_556x45_Stanag"; this addweapon "M16A2"

ect. you can find more weapons at armaholic.com

Do I have to repeat "addmagazine" as many times as mags are required or is there a shortcut?

I also tried "this addequipment" for NVGoggles, did not work. Is there a list with all those add commands?

(Can not find them in "New_Scripting_Commands_List")

Edited by Sira

Share this post


Link to post
Share on other sites

On Armaholic (on the main page, right hand side) there is the Object Library where every weapon, unit, vehicle, etc. is shown, also with its classnames.

The direct link to it: http://www.armatechsquad.com/ArmA2Class/ (yes, it is on Armaholic, even if the link says armatechsquad.)

About your first question:

Yes, you need to put

this addmagazine "30Rnd_556x45_Stanag";

as many times as the desired number of magazines.

To add the NVGoggles, try

this addweapon "NVGoggles";

This should work. As far as I know the command addequipment doesn't even exist. :)

Yes, there is a list of all commands, but this list is very extensive so it will be hard to find what you need if you don't know the name of it. :)

Unfortunately OFPEC.com seems to be down at the moment but when it's up again, make sure you check their forums as well and the COMREF, which contains all commands for editing in the Armaversum, in alphabetical order.

Edited by Undeceived

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  

×