Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Zombies that avoid walls?

What's a good script, that would allow zombies not to bump into walls while they chase you?

1 comment

0

You would start out by naming all the walls "Wall" and in the zombie script, use Magnitude to determine if it's about to hit a wall and just make the zombie's X or Z property + 10 or so, so it could dodge it.

2 answers

There's a neat technique called pathfinding, which is commonly used for Artificial Intelligence work. You can apply this simple technique named A* to help you out.

Here's a tutorial on LuaLearners on A*

you can buy models from the catalogue that do that!

This discussion is preserved as it was. New answers, comments, and votes are closed.