Thank you! I had made a state machine for the enemy, but I decided to scrap the combat because i was running low on time.