sorry, im stupid,

could you please explain that, waffle? i havent a clue when it comes to arrays. here are my codes for locking on.
this locks on if the enemy is on the screen
REM lock on if tank on screen
if object visible(15)=1
if object in screen(15)=1
locked = 1
else
locked=0
endif
else
locked = 0
endif
this makes the little "lock on" icon track the tank
REM if locked on reticule follows tank
if locked = 1
a=a-1
if a<0 then a=0
sprite 2, object screen x(15), object screen y(15), 5
if a = 0
ink rgb(500, 0, 0), rgb(0, 0, 0)
set cursor sprite x(2), sprite y(2)
print "locked"
lockedon=1
else
lockedon=0
set cursor sprite x(2), sprite y(2)
ink rgb(0, 0, 0), rgb(0, 0, 0)
print "...."
endif
else
rand=rnd(1)
if rand=1
sprite 2, 312+rnd(3), 231+rnd(3), 5
a=50
else
sprite 2, 312-rnd(3), 231-rnd(3), 5
a=50
endif
endif
this is in my shootmisile subroutine:
if lockedon = 1
point object 10, object position x(15), object position y(15), object position z(15)
endif