OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bobfantastic on 02 Apr 2004, 10:44:32

Title: Placing units with additional weapons
Post by: bobfantastic on 02 Apr 2004, 10:44:32
Hi, I'm quite new to the editing side of Flashpoint, and I was wondering how to set a soldier to have more than the standard weapons, i.e. a soldier with an M16 AND a Colt 1911.
Thanks
Title: Re:Placing units with additional weapons
Post by: macguba on 02 Apr 2004, 10:49:35
Easy peasy lemon squeezy.

First, use the weapons and ammo listing to figure out which weapons you want.   Then write something like this in the init field of the unit (don't rely on me for the exact details):

removeAllWeapons this; this addmagazine "m21"; this addmagazine "m21"; this addmagazine "m21"; this addmagazine "m21"; this addWeapon "m21"

Always add a magazine first to make sure that the weapon is loaded.    If you just want to add a handgun obviously don't remove stuff first.  

I strongly recommend you read Abuu's Basic Editing Tutorial.

Oh, and

Welcome to the forum!
Title: Re:Placing units with additional weapons
Post by: Dubieman on 02 Apr 2004, 22:48:38
Yes welcome but I don't know if a Colt 1911 is going to be easy to find... :'(

A bunch of good things to download are....

-Comref 1,85 or 1.40 or sumtihng
-Abuus editing guide
-RS OFP editing guide: having both Abuus and RS's guide makes for one hell of a little editing guide since both have many useful ieces of info.
-John Gustfanson's scripting guide, for later reading
-Genrally anything from Snypir cause that guy knows and has wrote a lot of stuff on OFP

There you go, I wish I had this stuff when I started... :)