printsprite

From ZDoom Wiki
Revision as of 12:57, 18 September 2013 by Deded007 (talk | contribs) (const templates, considered making this printimage, as this name is a little misleading)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function draws the specified sprite to the screen at the given position.

function void printsprite(str sprite, int id, int x, int y, int delay)
{
    SetFont(sprite);
    HudMessage(s:"A"; HUDMSG_PLAIN, id, CR_UNTRANSLATED, x, y, delay);
}