Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by ericDEV · Oct 27, 2016 at 11:10 PM · c#stealth

Thief Like Stealth Systems in C#. Please Help!!!

I'm lost in programming my idea, can someone help me? So, for any one that has played Thief I'm trying to craft a stealth system like that game using the dynamic shadows from unity using C#. Can someone help me?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by JincSoft · Oct 28, 2016 at 10:48 AM

A system like this is going to be a challenging one (not impossible though) so I'll break it down into the concepts you'll need to program. I won't give you code because that would take far to long for an answer and you don't get the satisfaction of making it. I also won't be going over specific AI concepts because that's another large topic. If all else fails, there may be something on the Asset Store.

  • Detection Script - A script that would handle the aggro or suspicion level on that character. Probably would want a way to adjust how fast it raises and falls for variety. I would probably do a form of a raycast from the characters "eyes" to tell if he could see the player or not. The range and angle should be adjustable as to match the character's vision capabilities. Once the suspicion level raises past a certain point, then go and attack the player, if he loses sight for too long, drop the suspicion and hunt for the player.

  • Static Shadows - A primitive collider (or mesh collider if it's odd enough) that reduces the incoming suspicion value for all enemies "looking" at the player that matches the shape of the shadow. If an enemy has a flashlight, torch, night vision, etc then you can stop the reduction if the player is within the light the enemy is holding (a cone collider would work just fine on a flashlight).

  • Dynamic Shadows - This is a lot more difficult because I am not aware of a way to detect shadows that is built into Unity. For this I would write my own system that tracked pre-planned shadow movement that would look like it's fully dynamic.

  • Player - The player should have actions, like running or moving in front of an enemy, that would add suspicion to anyone within a given radius for each action.

  • Misc - Things moving around, getting dropped, or stuff that would tip off an enemy are examples of things that you would need to add more realism to everything.

Similar Question:

http://answers.unity3d.com/questions/24662/detect-lightshadow-falling-on-object.html

Old Unity 4.x Stealth Tutorial

https://www.youtube.com/playlist?list=PLX2vGYjWbI0QGyfO8PKY1pC8xcRb0X-nP

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
avatar image
0

Answer by xXSilverswordXx · Oct 28, 2016 at 01:45 AM

people will probably want to know more about what you want in order to help you. ive never played thief myself, and i also cannot code. HOWEVER, it is a suggestion. Make the request simple to understand.

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
avatar image
0

Answer by ericDEV · Oct 28, 2016 at 11:54 PM

I would like to thank all replies. I will be working on improving my questions and coding the scripts that I will use in this project. ps. if you haven't tried Thief I command the second game, its more player friendly.

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.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Finding Boundaries of a Cover Object 1 Answer

Game Object Positioning 1 Answer

enemy not spotting player? 1 Answer

Pinball Flippers Control with multitouch 0 Answers

Access to script from another scene by the main menu 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges