Enemy move to player and avoid bullets

I want one of my enemy actors to move towards the player but move out of the way to avoid its bullets. I have put the following command in the Draw Actor event for the enemy actor:
When I run the game the enemy actor sits still until the player starts shooting, and then the enemy moves very slowly towards the player but seems to ignore the bullets. If a bullet does hit the enemy, the bullet seems to bounce off in the opposite direciton - which is definitely not right as the bullet is supposed to destroy the enemy on collision!
Any ideas how I can achieve this?
- Code: Select all
MoveTo("Event Actor", 0, 0, 2, "player", "bullet");
When I run the game the enemy actor sits still until the player starts shooting, and then the enemy moves very slowly towards the player but seems to ignore the bullets. If a bullet does hit the enemy, the bullet seems to bounce off in the opposite direciton - which is definitely not right as the bullet is supposed to destroy the enemy on collision!
Any ideas how I can achieve this?