# Difficult AI Project, Need help!

**URL:** <https://forum.kirupa.com/t/difficult-ai-project-need-help/70023>\
**Category:** programming\
**Created:** [November 10, 2004, 2:04am UTC](https://forum.kirupa.com/t/difficult-ai-project-need-help/70023 "2004-11-10T02:04:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheesy\_x](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cheesy\_x](https://forum.kirupa.com/u/cheesy_x)\
**Post date:** [November 10, 2004, 2:04am UTC](https://forum.kirupa.com/t/difficult-ai-project-need-help/70023/1 "2004-11-10T02:04:07Z")

</div>

Okay, I’m making an environment in flash to test an artificial intelligence (created to kill, bwahaha \*cough). I realized I have some skill gaps here, as I am not used to accounting for computers in a manner as complex as this.  
As a result a few problems have arised.

I have this so far : A pathfinding AI system for the computer character  
Appropriate Hittests (for walls, bullets, etc)  
Destructable targets that the AI will search for and attack

I am having problems with : The Line of sight of the AI character  
Since the character pivots 360 degrees, I cannot find a way for it to identify and shoot at targets it accuires (it fires in 360 degrees, but i cant figure this out).

What I want for this: A way so that the AI player has a conical line of sight infront of it, and that when it sees a target object it will point and shoot at it (Think Metal Gear, Folks, with a few alterations). A way for it to pivot and shoot (it fires from the front).

\*All comments appreciated.

\*I’m coming close to solving the LOS problem after a brief search, but the shooting problem remains
