OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Headhunter on 04 Nov 2003, 18:42:53
-
I have two questions,
First: How do you give a unit another weapon???
Second: How do I add custom music to my mission, I have the music I .ogg???
-
put the following in the init line of the unit.
this addweapon "WEAPONNAME"
this addmagazine "MAGNAME"
(may need to remove weapons first, hence...)
removeallweapons this
also if you put the mags before the weapon then the weapons starts loaded.
as for music (and indeed all i've put above) you'll find the answers in the editor's depot or under the FAQs and the search option for the forums
-
thanks
-
If you look under tutorials in the Editors Depot you'll find a weapons and ammo listing.