Getpname - EDukeWiki

# Getpname

From EDukeWiki

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

Retrieved from "http://wiki.eduke32.com/w/index.php?title=Getpname&oldid=8005"
Categories:

- EDuke32 specific commands
- String manipulation