Hello

I'd like to ask YOU if you can help me with some simple enemy AI stuff

I want my enemy to turn to the player when close enough and walking towards him (I can manage this part...) Whilst the enemy walks towards the player, the enemy should do 2 c_traces in a narrow angle (towards the front) and then (when hitting an obstacle) check wich trace was the longer and pan towards that side to avoid the object using the shortest pan turn. As soon as it's again clear between enemy and player, the enemy should again pan towards the player.

Although this can't be too hard, I'm too stupid to get it into working c-script

Thanks for any help!