Does anyone know the function used to display a name? I want to put a name up in the middle of the character, and modify its size based on distance if possible. Is there any function already around that can do this?
Thanks
Does anyone know the function used to display a name? I want to put a name up in the middle of the character, and modify its size based on distance if possible. Is there any function already around that can do this?
Thanks
Do you mean the name that is displayed in the middle of the HUD or the one floating above the players heads?
I mean the name floating above player's heads when you see them in front of you.
That's done native and can't be changed, you only can change the icon and the color I think
Check the PlayerController class for details (TeamBeacon).
Mfg, Vir@s
Download this mut I made some time back and have a look in the AltRDWarhead.uc and you'll see there how you can manipulate the name and everything else.
http://www.unrealza.co.za/files/mods/AltRedeemer.zip
in you hud class, grab a hold of the pawn/object who's name you want to display...(radius search or whatever) and in the DrawHUD function call the worldtoScreen function and pass in the pawns location...something like this:
and this should do ya...Code:var vector screenloc; screenloc = c.worldtocreen( targetpawn.location); c.setpos(screenloc.x, screenloc.y); c.Drawtext("--->Players name here<---");
Have fun
-Eze![]()
Bookmarks