Hi guys, i have a shark in the ocean, it swims correct and follows to attack…
Problem is when I exit the Water to Land, the Shark follows me onto the land.
For land animals i used a NavMeshBoundVolume to contain the animals and a PawnSensing but with the Water im using ProjectileMovement (see image below)
Would someone be able to tell me what i missed or what setting needs to be changed thanks. Need Shark to stay in the Water area.
Thanks for the reply, i might of confused you, i have 2 setups, Crocs and Sharks.
Crocs are using PawnSensing with a NavMesh which works fine.
Shark using ProjectileMovment (no NavMesh needed) When in the Water it works fine but when you leave the Water the Shark should stay in Water Volume/Bounds but it follows you on to Land.
I want is the Shark Not to leave the Water of course.
Coding is from a Youtube tutorial about adding AI to Water but it doesn’t cover my issue.
projectile movement is for things like bullets, missiles. it can go anywhere and doesnt need a navmesh, if you dont want your shark to behave that way you’d need the change the movement or put in some system like a sphere trace forward to detect what its attempting to move on