This system uses points on the actor’s skeletal mesh to pinpoint the actor. For example, the entire character can be behind a wall but part of his hand will look out from around the corner, then the NPC Eyes System will find him.
Update 1.3
+ Added the function of enabling the NPCEyesSight component.
+ Added the function of updating parameters in runtime.
+ Added the function of getting parameters.
Update 1.2:
+ Client-side calculations are now disabled by default. This can be enabled in the BP_NPCEyesSightProComponent.
Update 1.1.0 – Now you can also use static meshes in regular actors. For example, doors or windows.
Update 1.0.1 – small fix.
System for the best stealth games!
This system uses points on the actor’s skeletal mesh to pinpoint the actor. For example, the entire character can be behind a wall but part of his hand will look out from around the corner, then the NPC Eyes System will find him. This system works very realistically and will always find a character where PawnSensing can’t handle it. You can add as many points as you want anywhere for your project’s needs. If an NPC turns its head, this system also follows its gaze. You can adjust the range and viewing angle.
In the PRO version, NPCs can now see the shadow of their opponents. For shadows, any points on the skeletal mesh are still used. Now in the PRO version, you can enable the option and NPCs will be able to see the target only if it is currently illuminated by a color source. This also works for all points on the skeletal mesh. Everything is very easy to use. You can assign a different reaction if the NPC sees a shadow or your character.
All code is written in C ++ and works in the background thread for the best performance.
Technical Details
Features:
- Works in the background thread for the best performance.
- This system uses points on the actor’s skeletal mesh to pinpoint the actor.
- NPCs can now see the shadow of their opponents
- You can assign a different reaction if the NPC sees a shadow or your character.
- All code is written in C ++
- Doesn’t require knowledge of C ++
Code Modules:
- NPCEyesSightProComponent(Type: Runtime)
- NPCEyesPointsPro(Type: Runtime)
Number of Blueprints: 2 component and 4 BP for demo.
Number of C++ Classes: 2
Network Replicated: Yes
Supported Development Platforms: Win64
Supported Target Build Platforms: Win64
Original_Link: https://www.unrealengine.com/marketplace/en-US/product/npc-eyes-sight-system-pro-npcs-can-see-shadows