Destroying a Target

Blitz3D Forums/Blitz3D Beginners Area/Destroying a Target

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well, I did this:
For q=0 to fullmag
If EntityDistance(bullet(q),target_one(x))=<1 Then
HideEntity player
EndIf
Next

I put the x in target_one because when I don't it says "Identifier target_one may not be used this way".
So it still gave me an "Array Index Out Of Bounds".

Same thing with:
For q=0 to fullmag
If EntityCollided(bullet(q),type_target) Then
HideEntity target_one(x)
EndIf
Next

I'm sure it's because of the x but I don't know what else to do.

PS: type_target is target_one's collision.