He has a projectile movement and is homing to my player.
Hey there @VKittyCat2022! You will have to clamp the vertical location of the fish to the water. I think you can use GetWaveInfoAtPosition
and use the InPosition
output as the clamp value.
Maybe you just need to add a collision box slightly above the water surface to block it.
@SupportiveEntity Thanks for the reply, but I don’t know C++.
I can try to learn, though, if that’s the only option.
@ShangJR Thanks but that won’t work. I need him to be able to jump out of the water.
Create an invisible wall using a spline on the edge of the water, you’ll want to setup collision to where it only block him tho if you want the player to be able to enter the water. This would be the easiest way without some complex code or BP work.
Ultimately though I’d think the best way to accomplish it’s behavior would be an AI controller/ navmesh. And use a modifier volume on the land
Hmm… I think I might be able to do that.
Can’t test it now, though. I’ll try it later.