OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
:) :)
-
Ok, do you just want a weapon on the ground or someone to "drop" it?
Here:
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
-
Yes, that was from Suma ;D
-
I was the one who asked him, prompting him to post that, don't I get any credit? ;D
-
Sigh...Fine, Everyone: Chomps was the one who asked the question therefore all credit to him.
Happy? :-\
8) PEACE
-
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