• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Cbjfan1 · Jun 25, 2012 at 03:17 AM · aienemyhorror

Need an enemy script that makes him wander and detect

Hey everyone. I'm working on a horror game based off the SCP foundation. I am hoping someone could provide a script for this (I just started unity. Never used javascript until then). The SCP is supposed to float around in an X,Z area, being able to clip walls. Once the player gets in a certain radius of the wandering SCP, he will stop wandering, and target the player. Once he targets the player, he will keep following the player (And clipping walls) until he gets to the player (then you die). So basically these things

-Wander around (floating and clipping walls in a certain X,Z area)

-Target the player at a certain radius

-Follow the player until he catches the player (Removing the radius)

I know it's a lot to ask for, but if someone could make a script doing that it would be awesome. Thanks in advance :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Berenger · Jun 25, 2012 at 03:20 AM

Giving you the scipt would be useless, you need to learn by yourself and show results that you did, not that the internet did.

AI is too complicated to start unity and unityscript. Start by some simple projects, tutorials, video etc. When you're more comfortable, start looking at AI concepts, slooooowly. Take your time. And good luck.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

2D enemy Field of Vision script 1 Answer

free roaming enemy ai 1 Answer

C# AI, Enemy is flying at me when I jump. 2 Answers

How can an enemy deplete players health? 0 Answers

AI script troubles 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges