OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Master Chief on 04 Sep 2002, 16:26:29

Title: Weapons on ground
Post by: Master Chief on 04 Sep 2002, 16:26:29
Hi everyone,

For Resistance, does anyone know how to put an M16 or something on a specific point on the map in the editor?

Please help.

 :) :)
Title: Re:Weapons on ground
Post by: Gameer_77 on 04 Sep 2002, 18:23:05
Ok, do you just want a weapon on the ground or someone to "drop" it?

Here:

Quote

Is it possible to place a single weapon somewhere in the map?


Use createVehicle to create an object of following type:

"SecondaryWeaponHolder" to hold secondary weapon (LAW...)
"WeaponHolder" to hold primary weapon, handgun or magazine

This holder is empty by default and it acts like an ammo crate - you can use addMagazineCargo and addWeaponCargo functions to add weapon or magazine to it.


To drop magazine use:

soldier action ["drop magazine",soldier,0,0,"m16"]

To drop weapon use:

soldier action ["drop weapon",soldier,0,0,"m16"]

From Suma (I think)

 8)PEACE
Title: Re:Weapons on ground
Post by: KTottE on 04 Sep 2002, 18:36:39
Yes, that was from Suma ;D
Title: Re:Weapons on ground
Post by: Chomps on 04 Sep 2002, 21:27:44
I was the one who asked him, prompting him to post that, don't I get any credit?  ;D
Title: Re:Weapons on ground
Post by: Gameer_77 on 04 Sep 2002, 22:16:06
Sigh...Fine, Everyone: Chomps was the one who asked the question therefore all credit to him.

Happy?  :-\

 8) PEACE
Title: Re:Weapons on ground
Post by: Chomps on 05 Sep 2002, 00:52:02
Sigh...Fine, Everyone: Chomps was the one who asked the question therefore all credit to him.

Happy? :\

 8) PEACE

That's all I ask.  ;D