View Full Version : Displaying names
07-19-2003, 02:28 AM
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?
07-19-2003, 06:55 AM
Do you mean the name that is displayed in the middle of the HUD or the one floating above the players heads?
07-20-2003, 03:49 PM
I mean the name floating above player's heads when you see them in front of you.
07-21-2003, 08:01 AM
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).
07-28-2003, 06:26 PM
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.
07-31-2003, 12:08 AM
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:
var vector screenloc;
screenloc = c.worldtocreen( targetpawn.location);
c.Drawtext("--->Players name here<---");
and this should do ya...
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.