It looks like you're new here. If you want to get involved, click one of these buttons!
Hi I am new to unity and if you know how to add shooting enemy AI in unity 3d please help me out!!!
Any Help will be appreciated!!
in the update function you can do
Collider collide = Physics.OverlapSphere(enemy.position, sphereSize, whatIsPlayer);
if(collide = null) //if the player isnt in it's 'bubble'
InvokeRepeating("Shoot", 2f, shootRate);
in the else you can make it run away
@Sugar_Snail Thanks a lot!!