Detect Actor that is already colliding with another

How do I detect an object that is already colliding with another when the game starts? The “onbeginoverlap” function only detects an actor that moves into another one, but I want to trigger an event based on an actor teleporting onto an object instead of moving into it. Is there a node to do that specifically?

you could create your own event, OnTeleported otherwise you can use GetOverlappingActors and Find your expected actor

This is my code so far but it does not work when the actors are already colliding when the game starts. The logic I’m going for is having the jumpscare image trigger when the AI model is on top of the collision box around the player.

one trick i like is to disable collision and then enable it slightly after begin play. this should force an update

using begin play it could trigger before your pawn is even spawned for instance.

I’ve experienced this issue myself! I resolved it by using GetOverlappingActors during BeginPlay to detect overlapping objects. This approach works well for actors that are already placed in the level.

However, for dynamically spawned actors, it may not work reliably because those actors might not exist yet at the time BeginPlay is called.

To address this, you could manage the game state using the GameMode, and only perform the overlap check once the game is in a “ready” state.