ChangeFloor

void ChangeFloor(int tag, str flatname);

Usage

Changes the floor texture of all sectors with the specified tag to flatname. You may also use any texture, pname, sprite or internal graphic (such as TITLEPIC) in place of an actual flat. Note: Only graphics whose dimensions are powers of 2 (i.e.: 32, 64, etc.) will display correctly.

Examples

This one is pretty straight-forward. In this example, pressing a switch turns off a waterfall, which in turn dries up a stream of water  or in this case, the SFALL1 texture that is used as a flat.

Script 1 (void)
{
    ChangeFloor(4, "RROCK13");
}

You will need to have the sector that has got the flat you want to change tagged to a unique number  in this example, the sector was tagged as number 4.

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.