OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SPC. BLOODHAWK on 20 Jun 2003, 17:34:20

Title: How Do i add a single weapon to the ground
Post by: SPC. BLOODHAWK on 20 Jun 2003, 17:34:20
How do i add a single weapon to the ground as if it was dropped just that noone dropped it?
Title: Re:How Do i add a single weapon to the ground
Post by: eversman on 20 Jun 2003, 22:08:08
..... WHAT????..... i dont understand... :o ???
Title: Re:How Do i add a single weapon to the ground
Post by: Oskar on 20 Jun 2003, 22:17:16
i think he means, that he wants a weapon laying at the ground.
Title: Re:How Do i add a single weapon to the ground
Post by: deaddog on 20 Jun 2003, 22:23:39
This question was just answered a couple of days ago.  Search for "weaponholder" and your question will be answered.  :)

Oh, what the heck.

rpd1="weaponholder" createvehicle blahblahposition
rpd1 addmagazinecargo ["m16",4] (or whatever)
rpd1 addweaponcargo ["m16",1]

You can't actually name the weapon.  You have to create a "weaponholder" obect and then add the weapon to it, just like an ammo crate.  It takes about 15 seconds after the weapon is added before you can actually take it.  I don't know why.

Hope that helps.  :)
Title: Re:How Do i add a single weapon to the ground
Post by: Zombie on 20 Jun 2003, 22:56:17
I just tried this and got the error:
cannot open object misc\dummyweapon.p3d
is this a 1.85 command? or am I missing something I shouldn't be?
Title: Re:How Do i add a single weapon to the ground
Post by: LCD on 20 Jun 2003, 23:02:00
@ zombie

1.75 nd above ;D

@ deaddog

Quote
I don't know why.

its known bug w/ createvehicle  :-X after u use createvehicle it takes som time 2 OFP 2 actualy recignuse dis as object  :-\

LCD OUT
Title: Re:How Do i add a single weapon to the ground
Post by: Zombie on 20 Jun 2003, 23:24:28
rgr LCD, thanks.  Time to upgrade!