Hello, so I'm trying to set a mobs target to the closest player on the opposite team. Here's the code:
The error is with the last line, it says it "Can't understand this condition or effect"
Any and all help is greatly appreciated.
Code:
loop all players in {snd.remainingblue::*}:
set {_distance} to the distance between player and loop-player
add {_distance} to {distances.%player%::*}
set {distance.%{_distance}%} to loop-player
set {closestdistance.%player%} to min({distances.%player%::*})
set the last spawned zombie's target %{distance.%{closestdistance.%player%}}%
The error is with the last line, it says it "Can't understand this condition or effect"
Any and all help is greatly appreciated.