How to make hide in bush function for a stealth game?
Hello! I'm trying to make a hide in bush function for a stealth game. When the player is crawling in the bush the enemy can't see you and when you stand up or craw out of the bush the enemy will see you.
Kinda similar to the hide in the bush in We Happy Few:
Here are the grass and flower models in my game:
Because I also wish to mass paint it like a foliage, so I'm wondering what will be the best way to go for making this feature?
asked Nov 25 '18 at 01:16 AM in Blueprint Scripting
First you may have to use a different object channel to distinguish bushes from other collision objects. Then you can use a custom depth based post process material to get the desired look when the character is hidden. Finally, you have to modify the AI_Perception and enemy detection logic to ignore character inside a bush. I have done couple of tutorials based on that topic . post process material : codelikeme outline mat codelikeme hide in bush
Just make a volume in each bush or get the location of the Bush and get your character to crouch within a certain distance of it. Then prevent the enemies from seeing the character with a Boolean.
answered Jul 30 '19 at 08:07 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here