Hey guys, I was wondering whether anyone would know how to create a stealth based system so that when you are in darkness enemies cannot see you? Also, a cover system and sound based detection. Wanted to create a stealth based game for my final year at university, similar to Splinter Cell, and was wondering whether this could be using blueprint?
I found something that was in UDK using code, but I am unsure whether you can transfer this across to UE4, any ideas?
@, that’s a good solution, though I don’t typically like doing stuff that requires an extra process per-whatever (per-light in this case) as that quickly gets cumbersome.
It does give me an idea, though, which is that you could use the light position + radius, if those are available, for a regular ole sphere intersection test or the like. Different types of lights might need to do a different volume than a sphere, though.
Also there’s the issue of coverage. You don’t want the character to be binary visible or hidden, since one sliver of the character being inside the test volume would evaluate to being visible.
The beauty of computers… do it once, and you can do it every time. So it won’t be cumbersome. If you’re thinking computional wise… Put in a delay and test every 0.5 seconds instead of tick.
And the system I described won’t have to be binary.
If you have 3 point you detect to, you can weight each point. Head 20%, Torso 50% and legs 30% for example.
Couple this with distance… 100 units away vs 250 units away vs 500 units away. Different distance, different visibility.
This would create a pretty Thief like system and feel I am almost certain.
If you on top of this add something that takes your speed into account it would be very very detailed actually.