OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: redmenace on 20 Nov 2005, 23:06:56

Title: Magazine/weapon names?
Post by: redmenace on 20 Nov 2005, 23:06:56
Is there somewhere I can get a list of all the magazine and weapon names for the addweapon and addmagazine commands?
Title: Re:Magazine/weapon names?
Post by: Planck on 21 Nov 2005, 00:00:59
Yes, always check the Editors Depot first, try here (http://www.ofpec.com/editors/browse.php?category=1_5&start=50).

There are all sorts of resources there.  :)


Planck
Title: Re:Magazine/weapon names?
Post by: redmenace on 21 Nov 2005, 02:11:28
Thanks. I have a follow up question: for some reason when I try to add any launcher to the crates it wont work. Are you not able to put launchers in crates? If not, how do I make one on the ground?

edit: also, for some reason I can't pick up launchers of any kind from dead enemies...any clue why?


edit 2: I figured out that the reason for all this was that civillians cant pick up machine guns or launchers. Is there a way to make it so they can? I don't want to have to make them resistance or west/east...
thanks
Title: Re:Magazine/weapon names?
Post by: The-Architect on 21 Nov 2005, 08:47:31
You'd need to edit the unit's configs. That means making a new addon of sorts so no.
Unless of course you want to make a new addon.

For crates you have to do this,

This AddMagazineCargo ["M16",5]; This AddWeaponCargo ["M16",1]

Etc,etc.
Title: Re:Magazine/weapon names?
Post by: macguba on 21 Nov 2005, 10:49:00
To make a weapon lying on the ground you need a weaponholder.   Think of it an an invisible ammo crate.

From an init.sqs:-

weaponH1 = "weaponHolder" createVehicle getMarkerPos "WH"
weaponH1 addMagazineCargo ["kozliceball", 4]
weaponH1 addMagazineCargo ["kozliceshell", 4]
weaponH1 addWeaponCargo ["kozlice", 1]
weaponH1 setPos getMarkerPos "WH"
weaponH1 setDir 70