Is this all the code it takes for an enemy to see and attack the
player??(no shooting)
Is there anything i left out??
Or is there a better way of doing it??
________________________________________________________________
ai start
ai set radius 0.5
rem player
make object sphere 2,20:position object 2,0,20,0
ai add player 2
rem enemy
make object cube 3,20:position object 3,0,20,80
ai add enemy 3
ai set entity speed 3,40
ai set entity view arc 3,360,300
ai set entity view range 3,300
ai entity defend area 3,0,20,360
ai set entity can attack 3,4
ai set entity stance 3,4