View Full Version : Displaying names
legacy-salaboB
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?
Thanks
legacy-Vir@s
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?
legacy-salaboB
07-20-2003, 03:49 PM
I mean the name floating above player's heads when you see them in front of you.
legacy-Vir@s
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).
Mfg, Vir@s
ProAsm
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.
http://www.unrealza.co.za/files/mods/AltRedeemer.zip
legacy-Ezeikeil
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.setpos(screenloc.x, screenloc.y);
c.Drawtext("--->Players name here<---");
and this should do ya...
Have fun
-Eze :cool:
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.