|
| 16 Jul 2012 04:17 PM |
| I want to have a zombie that walks around, then attacks when someone goes close to it. NOT a zombie that charges at u from a mile away. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 04:22 PM |
| You have to make a script where it finds the nearest Torso |
|
|
| Report Abuse |
|
|
Flash77
|
  |
| Joined: 14 Jun 2008 |
| Total Posts: 550 |
|
|
| 16 Jul 2012 04:22 PM |
just use magnitude.
if (position1-position2).magnitude < Attack_raduis then |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 04:55 PM |
Take "NPC Wait Animation" from the Catalog. You can set AttackBoundary in the script, at the top. You will lern how to check Distance, if u read the script. Take "Speed AI" if u need a zombie to go around walls.
Gl, Brian
|
|
|
| Report Abuse |
|
|