Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I create an AI that can't see behind it?

Asked by
Galicate 106
4 years ago
Edited 4 years ago

After the most recent roblox update, my AI have just been refusing to walk sometimes. The game will say that they are walking, but they won't walk.

So i'm gonna rework them, and I want them to not be able to see you unless you are infront of them. Kinda like how in dark souls you can sneak up on enemies.

I was thinking about using raycasting for this, but i'm unsure how I would go about this. Pathfinding isn't the issue, but detecting if the AI can see the player is what the problem is. Any ideas? Not looking for code, just some advice/help

tl;dr - ai that can't see behind them until attacked.

  • Not gonna post code because i'm restarting from scratch
0
Have you tried setting the network ownership to nil? rexhawk 222 — 4y
0
well the thing is that instead of trying to fix the earlier code, i'm just going to rework it. Galicate 106 — 4y

Answer this question