OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: mboshell on 24 Feb 2010, 11:00:12

Title: ADDING SECONDARY WEAPONS
Post by: mboshell on 24 Feb 2010, 11:00:12
This seems like a simple one, but for some reason I cannot figure it out.  What I want to do is create a sniper mission where the sniper has his rifle as well as a silenced SMG for close combat.  If this is not possible, then I would at least like him to have a pistol.  I've searched the list of weapon names for the addweapon command and am so far unsuccessful.  Thanks in advance for any help or clarification!
Title: Re: ADDING SECONDARY WEAPONS
Post by: Gruntage on 24 Feb 2010, 11:52:45
Heres a handy script for yer:

http://www.ofpec.com/ed_depot/index.php?action=details&id=294&game=OFP

this allows the player or AI to carry multiple rifles. In your case you would have for example an m21 as ur first rifle and maybe an hk as ur second.

Hope this helps  :good:

Gruntage
Title: Re: ADDING SECONDARY WEAPONS
Post by: mboshell on 28 Feb 2010, 23:06:59
Thanks Gruntage!  I haven't had a chance to try it yet, because I started a new mission type that has my attention currently, but when I try it, I'll come back to this thread if I have any problems.

Thanks again!