This is... (hopefully) a solution to a problem i've had for a long time - How to have guns just lying around on the ground. (Like when you drop them in RES but without having to drop guns everywhere) Recently, I downloaded Dan AK47's pack. And in the pack all of the guns also had "object" counterparts which were just the guns lying on the ground like someone had dropped them. I emailed him asking how he did it, and his reply is as such.
You can do it by creating a vehicle called
WeaponHolder and doing "this addweaponcargo
["M16",1]". You can also add magazines to it with
"this addmagazinecargo ["M16",(number)]" (don't want
an empty gun laying there do you?).
WeaponHolder is not visible in the editor, but you can
create it by renaming the classnames in notepad (same
way you make houses..) or making a gamelogic and
putting "somenamehere = "WeaponHolder" createVehicle
getpos this" in the init field.
I tried the last method there. (Its the only one i even have the slightest idea of) but i can't get it working. Could someone simply make an editor selectable "weaponholder" so i can just simply place one wherever i choose and put weapons in them? I searched Google, the OFPEC forum, the BIS forum
and the knowledge base here at OFPEC. But i can't find anything about it. Will someone help me?