With arrays you add text strings or numbers, you could use either as a boolean mechanic
say
x,5 = armed, where a 0 is not armed, and 1 is armed.
If you reference that spot accordingly, say you have a gun at the 3rd X index, which states its armed status at the 5th Y.
3,5 = 0
Means your gun is not armed.
Actually it should have been 2,4 = 0 according to my statement, seeing as arrays use a 0 based index, starting their count at 0 rather then 1.
So keeping the zero based index in mind:
2,4 = 1
would mean your gun is armed.