Arma 3
41 ratings
Place weapons on a table
By skypound
This is a little guide on how to place weapons on tables,..
   
Award
Favorite
Favorited
Unfavorite
Step 1: Place a table

First you have to place a table. You can find camping tables in Empty>Tents and other tables in Empty>Objects (Furniture).
Step 2: Place the weapon

Now comes the hard part:
1. Place a Game Logic somewhere on the table.
2. Name the Game Logic. (I'd recommand you a simple name, I'll call it M4 for this tutorial)
3. copy the following lines into the init field of the Game Logic and change things if necessary:


M4 = "groundWeaponHolder" createVehicle getpos this; //this is necessary to make everything work.

M4 addWeaponCargo ["RH_m4a1_ris",1]; //this adds the Weapon. ["classname of weapon",number of weapons]

M4 addMagazineCargo ["30rnd_556x45_STANAG",2]; //this adds magazines to the weapon. (optional) ["classname of magazine",number of magazines]

M4 addItemCargo ["RH_shortdot", 1]; //this adds any items like surpressors, optics,... (optional)

M4 setPos [getPos this select 0,getPos this select 1,0.8]; //this makes the weapon lying on the table. Adjust the last number if you use a bigger/smaller table, 0.8 is for the camping table!

M4 setdir 30 //this defines the direction of the gun (0-360 degrees)
Script
init of Game Logic:

name = "groundWeaponHolder" createVehicle getpos this;
name addWeaponCargo ["classname",#];
name addMagazineCargo ["classname",#];
name addItemCargo ["classname", #];
name setPos [getPos this select 0,getPos this select 1,height];
name setdir degrees;
Doesn't work?
if it doesn't work, delete your Game Logic and try it again. Usually it's just an accidentally deleted letter or something like that.
if it's still not working, check the classnames!
If that doesn't help you, please feel free to send me your init field and the error you get (if you get one)! I'll try to find the mistake. ;)
Things to know:
You can find a list of all classnames here: Six Config browser[browser.six-projects.net]
You can also go to preview, hit escape and then "config", this will take you to a very crappy, unuseful and slow ingame config browser.

I used RH's M4 mod[forums.bistudio.com] for this tutorial. You can usually find classnames of mod-weapons either on the download page or in the readme file! :)
Have fun!

Have fun and feel free to share this guide with others!
< >
17 Comments
foxtrothotel92 Mar 14 @ 7:18am 
Sorry I'm newbie in here, any chance to know how to put backpack on the table in arma 3?? please don't put some link about BIS no more, I've had enough with link. Somebody like this skypound's guide explanation will be great...
cheMartin May 24, 2020 @ 6:34am 
yes now with the eden editor it is easier .. but how do i make the weapon appear with the sight and silencer
skypound  [author] Feb 14, 2020 @ 7:11am 
This tutorial is for the classic editor not the eden editor, I posted it like 5 years ago when the eden editor wasn't impemented. So yeah it's probably pretty useless now.
Barackmakov_Obamski Feb 1, 2020 @ 10:14pm 
Either this is a tutorial for how to make it such that players could place objects on table during the game, and I don't realize that that's what this is actually for. Or, and I could be wrong, but I think last time I've used the eden editor to put items on a table when building a scenario, they'll sort of just 'snap' to the surface of the table if I use the position sliders that come out of a selected object in the editor.
PotkanCZ Jan 15, 2020 @ 12:26am 
What is game logic? Ive got czech version.
bcon117 Mar 7, 2018 @ 10:23am 
I know this is old, but does anyone know how to DROP a units weapon onto this weaponholder?
The weapon I want cannot be loaded via script for some reason but can be dropped with attachments.
Using groundweaponholder I can get the weapon on the ground via action ["dropweapon"...], but it spawns like 10 feet away and idk why...
I'd preferably like it on the table, or especially mounted on a wall.
Anyone try this before? What am I missing?
Savatar Jun 4, 2015 @ 3:23am 
name = "groundWeaponHolder" createVehicle getpos this; name addWeaponCargo ["arifle_MX_Hamr_pointer_F",1]; name addMagazineCargo ["B_65x39_Caseless",3]; name setPos [getPos this select 0,getPos this select 1,height]; name setdir degrees;
[GHC] RandomMusic Feb 17, 2015 @ 2:42am 
with out Bohemia interactive you whould not be playing this game GECKOWARRIOR
GeckoWarrior Dec 14, 2014 @ 12:04am 
It takes so much time to do something in the editor of Arma 3... :( Bohemia interactive sucks.
Thank you very much for this useful guide!
muzz May 1, 2014 @ 8:25am 
Or you just place an empty object on the table in the editor and on the bottom-left set the elevation to your required height... also works.