Help with Actor Representation not updating on Mini Map
Hey all!
Since yesterday I have been working on this code. My goal is: If a wheeled vehicle (tractor, truck or explorer) have a Path loaded in, it will show the name of the path as the name of the vehicle in the Map/Compass.
This is my current C++ Code (All temporary, it's mainly for me to understand how the systems work and what the functions do)
The output shows that I managed to update the actor name of the vehicle correctly, I managed to find the representation of the actor correctly as well, but when I update the representation, nothing happens in the game map, the map marker stays as "Tractor"
I thought that changing the vehicle name would change the whole "Tooltip content" chain, but doesn't look like.
Also when I hook into
Hook_GetActorRepresentationText
Hook_GetActorRepresentationText
the vehicle object is always null for some reason that I couldn't understand
Can anyone give me a direction on what to do? I'm a bit lost now. Thank you