Basically, when I right click on a compass, I want to make it point to the nearest player on the opposite team.
The teams are coded in a way that {team::%player%} will be equal to either "red" or "blue".
I have two questions, is it possible to point the compass to a specific entity, and how do I pick the nearest player on the opposite team?
I tried searching for solutions, but none fit into my idea.
The teams are coded in a way that {team::%player%} will be equal to either "red" or "blue".
I have two questions, is it possible to point the compass to a specific entity, and how do I pick the nearest player on the opposite team?
I tried searching for solutions, but none fit into my idea.