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

Zombies that avoid walls?

Asked by 10 years ago

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

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. Shawnyg 4330 — 10y

2 answers

Log in to vote
1
Answered by
Unclear 1776 Moderation Voter
10 years ago

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*

Ad
Log in to vote
-1
Answered by 10 years ago

you can buy models from the catalogue that do that!

Answer this question