Keep actor "certain distance" above player?

The spawn points would need to be in an actor (e.g. BP_SpawnPoints). Then you move the actor on tick with conditional checks before move.

On tick get Capsule Component world location and compare it against the SpawnPoint actors location (distance between the two should suffice). If distance is greater than n → move to current location.

Set actor location w/capsule components world location.


@ClockworkOcean is right about only moving it pre-spawn.
When you need to spawn your actors, compare locations of the two. If you need to move, then move. Then call spawning.

1 Like