Home   Help Search Login Register  

Author Topic: Adding Weapons Through an Array  (Read 727 times)

0 Members and 1 Guest are viewing this topic.

Homefry31464

  • Guest
Adding Weapons Through an Array
« 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.
« Last Edit: 10 Jun 2004, 22:22:54 by Homefry »

Homefry31464

  • Guest
Re:Adding Weapons Through an Array
« Reply #1 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"]