Mechanics of scp-096

Hello everyone. I’m working on a project in UE5, and I’ve been trying to figure out how to make scp-096 for the past couple of days. I’ve attached a screenshot, and I’m sure I’ve forgotten something, but I can’t figure out what it is.

Hey @Alekre23! Welcome to the forums!

So what you have here will always point from the camera’s location to the SCP’s head. This isn’t ideal as it’s supposed to be if you LOOK at it, and this would trigger as long as there is no barrier between the player and SCP 096.

You’ll have to use another check after the line trace by channel, using dot products for this.

This way you can tell if the SCP is facing the player AND the player is facing the SCP, then if between the two values specified it would attack.

Hope that helps! :slight_smile:

1 Like

Thanks, I’ll try.