his Easy NameTags script
which displays the name and type of a unit you are looking at.
Display over head the name and type of non playble units.
Script use the 8th element in addAction params array for execute (very little CPU cost).
Only for Units!
Maximum distance for display 10m
Only for singleplayer missions! Multiplayer: not supported.