Home Editors Depot Missions Depot FAQ COMREF OFPEC Tags Forum

FAQ: Weapons Index


List of weapons

Equipping soldiers is like pouring sand into a glass. The glass holds only so much sand, and once it's full any extra sand just falls over the edge and onto the table. Similarly, if a soldier has no free weapon or magazine slots, adding weapons or magazines will have no effect.

The full list of all weapons and their respective magazines can be found here.


How to equip soldiers

To remove a soldier's primary weapon

unit_name removeweapon (primaryweapon unit_name)

To remove a single primary weapon magazine

unit_name removemagazine (primaryweapon unit_name)

To remove all primary weapon magazines

unit_name removemagazines (primaryweapon unit_name)

To remove a soldier's secondary weapon

unit_name removeweapon (secondaryweapon unit_name)

To remove a single secondary weapon magazine

unit_name removemagazine (secondaryweapon unit_name)

To remove all secondary weapon magazines

unit_name removemagazines (secondaryweapon unit_name)

To clear a soldier's entire inventory

removeallweapons unit_name

To add a loaded G36 to a soldier

unit_name addmagazine "G36Mag"
unit_name addweapon "G36"
unit_name addmagazine "G36Mag"
unit_name addmagazine "G36Mag"
unit_name addmagazine "G36Mag"

That will add a loaded G36 and 3 extra magazines. Note that the magazine is added before the weapon - this is what makes the weapon loaded. If the weapon was added first, followed by the magazine, the soldier would need to load the weapon in-game before use.

The same principle applies to secondary weapons and pistols, and they are added to a soldier's inventory in exactly the same way.

Thrown weapons such as grenades or smoke canisters are a little different. They are magazines, and the weapon required to fire them is 'throw'. Thus if you use the removallweapons command and then add a grenade to a soldier's inventory, it will not be usable.


How to equip vehicles

Equipping vehicles is done in exactly the same way as equipping units. For a complete list of the default weapons and their magazines, click here.

Note that vehicles can be equipped with vehicle weapons that they do not have by default. For example, tanks can be equipped with rockets and Mavericks. Aircraft can be given various rockets and cannons, however it is not possible to equip an aircraft with a tank's main cannon.


How to store weapons in a vehicle

Most vehicles have cargo space for weapons and ammunition, and the number of these that can be stored depend on the vehicle concerned. See the list below for the various cargo sizes.

The command to store a weapon in a vehicle is addWeaponCargo

vehicle_name addWeaponCargo ["G36", 10]

The command to store an ammunition magazine in a vehicle is addMagazineCargo

vehicle_name addMagazineCargo ["G36Mag", 50]

How to How to store weapons in a crate

transportMaxWeapons=500; transportMaxMagazines=2000;

How to How to store weapons on a table

See this demomission.