Usage
Syntax: addtiledef2(str tilesetimage, str prefix, int x, int y)
Explanation
Modifies a tileset definition, in part or in whole, to the client at the given coordinates in the tileset. All levels that has a name that starts with prefix will use the tileset tilesetimage for the portion of the tileset to which it applies.
addtiledef2 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:
addtiledef
removetiledefs
Example
//#CLIENTSIDE
function onCreated()
{
addtiledef2("coo_tileset_part2.png", "coolworld_", 16, 0);
}... applies the fictional tileset coo_tileset_part2.png to some portion of the tileset on every level in the fictional overworld coolworld.
Categories
CategoryFunctionClientside
There are no comments on this page. [Add comment]