In this video, I wanted to assign unique names to the pedestrians in GTA5, and also, when in the line of sight, to flash that name over their head in a fashion similar to Worlds of Warcraft.
I used "Scaleforms" along with Script Hook .net and C# to achieve the desired effect. While my first efforts involved trying to achieve the effect for ALL Pedestrians JUST LIKE Worlds of Warcraft or Everquest, there's an inbuilt limitation to the use of the Scaleform I used - SET_PLAYER_NAME, which only allows one to be displayed at any given time. Trying to create multiple scale forms leveraging this method resulted in a flickering effect with most of the peds names not visible.
While the Proof of Concept works, it still needs tweaking with the sensitivity of the raycast picking up whoever (or whatever) is standing in front of my avatar.
I found a web site that provided me a list of 4000 male and 4000 female names, which i then assign uniquely to each pedestrian based on an algorithm defined by the only way I have to uniquely identify each one - their handle....
My goal is to get a solid name plate over EACH Pedestrian.....
IF ANYONE has any ideas on how to resolve this issue or a different approach to an always on thing, please let me know!