OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Headhunter on 04 Nov 2003, 18:42:53

Title: Question
Post 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???
Title: Re:Question
Post by: mikeb on 04 Nov 2003, 19:14:51
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
Title: Re:Question
Post by: Headhunter on 04 Nov 2003, 19:30:14
thanks
Title: Re:Question
Post by: macguba on 04 Nov 2003, 19:45:44
If you look under tutorials in the Editors Depot you'll find a weapons and ammo listing.