This script will display text on the screen reading "Location Discovered!" and with custom text below it giving the name of the location.
Apply this script to any dynamic entity on your map. The entity does not have to have always active enabled. Make sure to apply this script to a smaller object like a barrel and not something as large as a building or house.
Change the Name of the entity to the name of the location that is discovered. This can be any text you want.
Make sure the entity's Static mode is set to off. As the entity will need to be dynamic for the script to work.
You can change the display time length and the distance at which the text starts to display by altering: