Usage

Syntax: showtext(int index, float x, float y, str font, str style, str text) ;
Returns object.

Explanation

showtext Renders text in the game world. Each showtext image must be given it's own ID using the index parameter.

When on the serverside, the image index must be below 200 to be displayed to players. However, on the clientside, the image index has special behavior. If the image index is below 200, the image will be displayed to other players in the level, whereas above, the image will only be displayed to the current player.

Example

function onCreated()
{
  showtext(200, 30, 30, "Tahoma", "b","Hello World");
}

... renders text on the screen in the Tahoma font, bolded, saying 'Hello World'

Categories

CategoryFunctionClientside
CategoryFunctionServerside
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki