OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: schuler on 12 Sep 2007, 00:14:31

Title: add ammo to player before breifing/gear
Post by: schuler on 12 Sep 2007, 00:14:31
  add ammo to player before briefing/gear. I am using Jam weapons and i just want the player to have M4_mags not Jam mags in his gear before briefing. in other words i don't want him to make the selection of mags, only weapons.
  cheers schuler
Title: Re: add ammo to player before breifing/gear
Post by: Mr.Peanut on 12 Sep 2007, 01:35:57
Is this for SP? If so just use the unit's init.
Code: [Select]
this exec "loadout.sqs"
loadout.sqs
Code: [Select]
_unit = _this
_unit removeAllWeapons
{_unit addMagazine "M4_MAG_NAME"} forEach [1,2,3,4,... up to how many mags you want]
_unit addWeapon "WEAPON_NAME"


Title: Re: add ammo to player before breifing/gear
Post by: schuler on 12 Sep 2007, 02:18:12
I'll give that a go! thanks, yea SP mission.
 schuler