ChangeFloor

From ZDoom Wiki

Jump to: navigation, search

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 who's dimensions are powers of 2 (ie: 32 x 64) will display correctly.

Examples

This one is pretty straight-forward. In the level I'm working on, pressing a switch turns off a waterfall, which in turn dries up a stream of water - or in this case, the SFALL1 texture that I'm using as a flat. Here's the script I used:

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

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

Personal tools