Hello!
First of all, let me say that I love the toolkit that you’ve put together. However, I’m currently working on something I was hoping you could perhaps help me with.
I’m trying to make it so that the player units can go into stealth when certain conditions are being met. One of those conditions is naturally dependent on whether or not the player units are visible to an enemy unit. I want to make it so that:
- Enemy units can “see” player units within X-range to the front or sides of the enemy unit. This sight will determine whether or not Player Units can enter stealth or not.
- Units behind meshes can’t be seen by enemy units.
- Units that are above a certain elevation can’t be seen by enemy units.
- Player Units who attack Enemy Units and/or cross line of sight lose their stealth status.
I’ve been looking through the Blueprints and haven’t been able to find what I need. I was hoping you could please offer some advice on how best to proceed. If you believe that there is a part of your blueprints that I may have missed that can help me in this task, I would greatly appreciate it if you could point me in the right direction. Or even if you were simply willing to offer some advice I would be quite pleased with any help you could offer. I had tried Raycasting but it always seems to raycast from the unit’s feet and thus doesn’t actually hit any meshes. It just seems to runs underneath everything.
I’m familiar with programming concepts although I haven’t had a great deal of experience with Blueprint itself. Any help you could provide would be appreciated.