x


Moving Enemies?

how would i make a script to make an enemy walk around an area and when i get a certain amount of distance away they start to shoot at the player? please help!

more ▼

asked Aug 13 '10 at 01:47 PM

john 2 gravatar image

john 2
75 29 35 46

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

The FPS tutorial has some basic enemy AI that walks between any number of waypoints, then attacks if within a certain distance. That might be your best choice for a quick solution. If you want a more complicated solution then I would recommend searching AI algorithms and see what comes up.

more ▼

answered Aug 13 '10 at 02:09 PM

Peter G gravatar image

Peter G
15.1k 16 44 137

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5270
x671
x330
x246
x75

asked: Aug 13 '10 at 01:47 PM

Seen: 2376 times

Last Updated: Aug 13 '10 at 01:47 PM