Results 1 to 6 of 6
  1. #1
    MSgt. Shooter Person
    Join Date
    Jul 2003
    Posts
    51

    Default Displaying names

    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

  2. #2
    MSgt. Shooter Person
    Join Date
    Mar 2001
    Posts
    112

    Default

    Do you mean the name that is displayed in the middle of the HUD or the one floating above the players heads?

  3. #3
    MSgt. Shooter Person
    Join Date
    Jul 2003
    Posts
    51

    Default

    I mean the name floating above player's heads when you see them in front of you.

  4. #4
    MSgt. Shooter Person
    Join Date
    Mar 2001
    Posts
    112

    Default

    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

  5. #5

    Default

    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

  6. #6
    legacy-Ezeikeil
    Guest

    Default

    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:

    Code:
    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


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.