OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: tateyou on 01 Jun 2008, 12:03:23

Title: How to add multiple magazines to the unit?
Post by: tateyou on 01 Jun 2008, 12:03:23
the syntax,for example "this addMagazine "30Rnd_556x45_StanagSD " can only add one magazine to the unit,how can i add multiple magazines?
i tried "this addMagazine ["30Rnd_556x45_StanagSD",5]" ,and it doesn't work that way, what's the correct or appropriate syntax? help me!
Title: Re: How to add multiple magazines to the unit?
Post by: Mandoble on 01 Jun 2008, 12:10:20
Code: [Select]
this addMagazine "30Rnd_556x45_StanagSD;this addMagazine "30Rnd_556x45_StanagSD;this addMagazine "30Rnd_556x45_StanagSD;this addMagazine "30Rnd_556x45_StanagSD;this addMagazine "30Rnd_556x45_StanagSD
Title: Re: How to add multiple magazines to the unit?
Post by: tateyou on 01 Jun 2008, 12:23:15
There is no other way? Simple way?
Title: Re: How to add multiple magazines to the unit?
Post by: Rommel92 on 01 Jun 2008, 12:56:39
ADD THE MAGAZINE 8 TIMES:

Code: [Select]
{this addMagazine "30Rnd_556x45_StanagSD;} forEach [0,0,0,0,0,0,0,0];(Suitable for INIT Lines)
Code: [Select]
for "_i" from 0 to 7 do {this addMagazine "30Rnd_556x45_StanagSD;};(Unsure about suitability.)
 :P