ReplaceTextures
From Eternity Wiki
Jump to navigationJump to search
Description[edit]
This is an ACS built-in function.
Replaces all occurrences of a texture with another.
Usage[edit]
void ReplaceTextures(str oldTexture, str newTexture[, int flags])
Parameters[edit]
- oldTexture: name of texture to replace
- newTexture: name of replacement texture
- flags: optional sum of flags to filter the replacement (default of 0 is to replace any texture named oldTexture):
- NOT_BOTTOM (1): do not replace any side lower texture
- NOT_MIDDLE (2): do not replace any side middle (wall or railing) texture
- NOT_TOP (4): do not replace any side upper texture
- NOT_FLOOR (8): do not replace any sector floor texture
- NOT_CEILING (16): do not replace any sector ceiling texture
Return value[edit]
Examples[edit]
No examples given.
Notes[edit]
This function has a global effect on the map, as it doesn't act just on some tagged sectors.
This function's identification in zspecial.acs is: (ACS internal).