I found the "pick nearest/furthest" condition under the "size and position" conditions and set it to pick the nearest Enemy family instance to the x and y of the hitbox. But now I am having trouble figuring out how to make the bullet move to the instance that has been picked by the condition. There doesn't seem to be an obvious way to actually return which instance is chosen by the condition. How are you supposed to do anything with the information the condition gathers?
when you pick nearest on the action on that condition you need to create the bullet, and set its angle towards that picked family member. you can't otherwise... i mean you can but you need to save the position of picked family member into some array or variables then create the bullet and set its motion angle etc... depends on what you need the bullet to do, if its one bullet or multiple bullets, like continuous shooting.
you can also have 1 variable and pick the familly by its value, like IID ... save the family object IID into a variable, then use on shooting create object at gun position then a subevent and pick by evaluate the family.iid with the variable value you saved before, and then create the bullet and set the angle towards that position of the mathcing family iid = value
here is a example of what i "burfed" above.