can someone help me code something

@Sonicegammer the blueprint is a building prop but it spawns in from a zombie spawner like once the player gets near it it spawns in and idk how to attach the perception device to that