OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Homefry31464 on 10 Jun 2004, 22:22:10

Title: Adding Weapons Through an Array
Post by: Homefry31464 on 10 Jun 2004, 22:22:10
Okay, I've been working on a script, but I need some help.  I want to have an array of weapons, one is selected, then the weapon is added to the unit.  My problem is adding the weapon via the array.

To add the weapon names, should the array be:

_primaryArray [AK47, AK47CZ, HuntingRifle, PK, FAL]

OR

_primaryArray ["AK47", "AK47CZ", "HuntingRifle", "PK", "FAL"]

Thanks in advance.
Title: Re:Adding Weapons Through an Array
Post by: Homefry31464 on 12 Jun 2004, 01:22:54
Figured it out.  For future reference, if anyone wants to know, it was:

_primaryArray ["AK47", "AK47CZ", "HuntingRifle", "PK", "FAL"]