one method would be to have a way that enables or disables input to the actor when you are overlapping it. basically on begin overlap enable input, on end overlap disable input. you could easily do this in a blueprint actor or in the level bp. below is an example which shows what im talking about. in the below example if im not overlapping the actor i could press E all i liked but nothing would happen. but if i press it and am overlapping then it will execute the script.
1 Like