I'm trying to make a revive system for my Heroes, when they die I want it to pick all Chapels or Altars in the map, pick the nearest one, and resurrect the Hero there. Picking the buildings is no problem, but I can't find a trigger for something like a a Nearest command, how would you do this normally?
EDIT: I found somewhat of a example here, except I get stuck at "Set Distance[2] = (Distance between Point[1] and Point[2])", I can't find a difference between function to set by.
EDIT: I found somewhat of a example here, except I get stuck at "Set Distance[2] = (Distance between Point[1] and Point[2])", I can't find a difference between function to set by.