Unknown action "templatetag"
Usage

Syntax: showimg(int index, str imagename, float x, float y);
Returns image object.

Explanation

showimg renders an image on the image board or the GUI screen layer, depending upon the layer that the image is drawn on. Each 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()
{
  showimg(200, "image.png", 30, 30);
}

... renders an image

Categories

CategoryFunctionClientside
CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki