Stealth AI?
Hi, I'm working on a horror project, and have experimented with some AI i made, very crappy. I am not very good with AI so I have come to the community to ask for some pointers and some examples for a first person stealth AI, using sight and sound(sound is not that important). Any help? Javascript please.
Answer by SoulGameStudio · Jan 19, 2016 at 10:40 PM
If you're going for a first person horror game, which seems to be at least an ambitious project, I guess you should rather try to use C# instead of Javascript, it seems that it suits more Unity Engine design on substantially big project. (just saying)
One thing I use a lot in my IA, is the Vector3.distance and Mathfs.angle which can compare player and enemy position, their respective orientations, and trigger different reaction for the enemy depending on those parameters.
I must say it's probably super tricky to create a stealth AI. It might be wiser to use Scripted behavior and Level Design to make your game. Making a real AI is hard, particularly in horror games.
Thank you, but most of my scripts are kind of already written in javascript. All my AI is kinda crappy, what i got now is a crappy script that tells the horror character to always run after the player but dont if player is hiding. So it is very unrealistic. But is there any way to make a better s$$anonymous$$lth AI, while still maintaining scary?
I guess you could make the enemy going back to his origin place or patrols road when the player become invisible, so it would look confused. Lots of game do that actually (assasin's creed).
But if you want something horrific and realist, you should maybe do thing like that: Player can't hide from the monster if the monster already sees him (=> close distance, correct angle). So player would have to advance by hiding and if he's spotted, the monster track him down until he kill him, forcing player to rush towards the exit in panic.
But all that is game design matter, not Unity... So I guess you should figure out clearly what you wanna make, and then we could maybe give you proper answer :)
Thank you for your feedback, yeah, I was thinking something alot like Outlast's s$$anonymous$$lth system, any tips on that? (Sorry, not used to working with AI)
Answer by WingBro · Jan 21, 2016 at 04:13 PM
Alright I figured it out, case closed. (I always wanted to say that)
Your answer
Follow this Question
Related Questions
How do I make a working flashlight with batteries? 0 Answers
raycast going through walls 0 Answers
Game got slow down On iphone 0 Answers
Can anyone make a timer for me? 0 Answers
How can i make an animation like csgo case opening? 2 Answers