Does anyone know of a good tutorial (text or video don’t matter) about how to implement a Camera system which can spot players and trigger a reaction in patrolling NPCs?
Been looking across Google and Youtube but most I find feature a system ALA Five Nights And Freddy’s which allows the player to view and interact with the Cameras, I do not personally have any need for this level of detail as I mainly need the camera to serve as another set of eyes for a stealth game I’m working on.
You could have the camera line trace to the player every tick and run the alert if hit. Should work fine if there’s not too many cameras running at once. though you could also give the camera a longer tick time to lower the cost if there’s a bunch of them. This would also limit the ability of the camera to trigger from other characters if you ever want to add friendly NPCs or something.
Another bonus of using the built-in perception system is it would be easy-ish to modify the camera into a a mobile NPC (like a drone or something) if needed.