Nearest enemy to my player character

Perfect, that’s fixed it. Followed what you said and its worked perfectly for me. Thank you so much for your time.

My last problem is when all the NPC’s have been killed the value returns 0.0 at which point io want the tempo to be at the slow (normal) tempo so i need to figure out how to do that.

Thanks again