I have tried to create an enemy which stops and a throws a spear every x seconds at player 2 (the flying one) when player 2 is in a certain radius using the line of sight behaviour on the enemy and bullet behaviour on the spear however the enemy doesn't stop when the player is in its line of sight even though I have deactivated the group movement when the player is in the enemy's line of sight.
Also, I am unsure on how to implement the spear mechanic as the sprite currently is pinned to the enemy but needs to be thrown and so unpinned in a semi-realistic fashion to how a person really throws a spear.
I hope I explained my problem clearly and any help would be very appreciated.
dropbox.com/s/bfjaauw1eyrynzq/Game%20%282%29.c3p