- Home /
Make player not be seen by AI, when player in foilage and shadows.
Hey guys, my team is currently making a games that is going to be a tactical 3rd person military shooter. How can we make our game so when the player is in pretty high tall foliage using the terrain editor to place the foliage like grass, or in the shadows not be spotted by the enemy AI?
Something seen in games like SOCOM US Navy Seals, and Splinter Cell.
Thanks in advance.
Answer by ScottW · Oct 14, 2012 at 04:22 PM
Ive never attempted this but i would create a game object (sphere maybe but no renderer) and set its collider as a trigger. set these objects in shadow or foilage areas and attach a script with ontriggerenter/exit that adjusts your players visibility variable. Could work for enemies too. Just a thought.
actually I was talking to my coder and we are thinking of the same thing. thanks for the help. I think thats the best option for now. :)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Enemy Spawn Script Spawning Infinite Enemies [Help] 2 Answers
How do I get my emeny AI to detect if he sees a player, or one of the good AI? (C#) 3 Answers
Make AI walk around randomly until Player is Seen. (C#) 2 Answers
how can i make the enemy kill more players one after the other chasing them ??? thank you 0 Answers