How do i get the victim's location while the attacker is selected?

LiveBerry647302

New member
Joined
Dec 4, 2024
Messages
9
Is there a way i can acquire the coordinates of a victim while still selecting the attacker? As both images suggest I am trying to get if the attacker's location is in the 5 block radius of the victim's location. For "current location" I want the game value to get the victim and not the attacker. I will try multiple ways after this and will update when something works and open for constructive criticism on what i should do instead

tl;dr, I am trying to get if the attacker's location is in the 5 block radius of the victim's location. How do i do that?
 

Attachments

  • Screenshot 2024-12-09 150417.png
    Screenshot 2024-12-09 150417.png
    265.9 KB · Views: 4
  • Screenshot 2024-12-09 150406.png
    Screenshot 2024-12-09 150406.png
    787.1 KB · Views: 4
Top