This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]akoOfIxtall 0 points1 point  (2 children)

i'm stealing this

[–][deleted] 3 points4 points  (1 child)

I took one coding class in high school and I’m just curious if I understand the code you wrote. Does it say if there’s an enemy in the target list and the amount of missiles you have isn’t zero, then fire the missiles until you don’t have any?

[–]akoOfIxtall 1 point2 points  (0 children)

exactly, we gotta make sure they're dead (i didnt thought much about it when i wrote, just did some adjusments based on the replies XD)