Destroying a Target

Blitz3D Forums/Blitz3D Beginners Area/Destroying a Target

I'm having trouble with collisions (or something).
I'm working on an FPS and I've set up collisions for my bullets, player, terrain, and targets and it all works fine.
The problem is that when I try to make a statement saying that when my bullet collides with a target, make it dissapear.

I've tried several things including:
For q=0 to fullmag
If CountCollisions(bullet(q))
dead=CollisionEntity(bullet(q),1)
HideEntity dead
EndIf
Next


Of course, when I do THAT it hides everything whit a collision that gets hit with a bullet.

I've also tried:
If EntityCollided(target_one(x),type_missile)=True Then HideEntity target_one(x)


Then it says "Array Index out of bounds".

How do I make it so that the bullets will only effect targets?