ChangeCeiling

From ZDoom Wiki
Revision as of 22:58, 27 August 2010 by Aeo (talk | contribs) (Fixed a slight copy-pasta error.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

void ChangeCeiling(int tag, str flatname);

Usage

Changes the ceiling texture of all sectors with the specified tag to have flatname as their new ceiling texture. 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

A simple script to change the texture of any ceilings with the sector tag 4.

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