Usage

Syntax: addtiledef(str tilesetimage, str prefix, int tilesettype)

Explanation

Adds a tileset definition to the client. All levels that has a name that starts with prefix will use the tileset tilesetimage.
tilesettype specifies how the tiles are ordered (blocks, lava, etc). Type 0 is the regular order found in pics1.png, and type 1 is a newer and more structured order used by Era and possibly some other servers.
addtiledef is often best used in weapon scripts since putting them in levels can make it very hard to later add things like seasonal tilesets.

See also:
addtiledef2
removetiledefs

Example

//#CLIENTSIDE

function onCreated()
{
  addtiledef("coo_tileset.png", "coolworld_", 0);
}

... applies the fictional tileset coo_tileset.png to every level in the fictional overworld coolworld.

Categories

CategoryFunctionClientside

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

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