Getpname

From EDukeWiki
Jump to navigation Jump to search

getpname <QUOTE #> <gamevar holding PLAYER ID>

Replaces a quote with the name of a player. (Player names are entered in the PLAYER SETUP menu.)

Example (displays the name of the player in the upper left corner of the screen):

onevent EVENT_DISPLAYREST
    setvar digx 2
    setvar digy 2
    setvar shade 0
    setvar pal 0
    getpname 125 THISACTOR
    setvar temp 125
    minitext digx digy temp shade pal
endevent