CheckActorCeilingTexture
bool CheckActorCeilingTexture (int tid, str texture)
Usage
Returns true if the ceiling texture of the sector the calling actor is in matches the name in the string of the ACS function. If tid is 0, it uses the activator. For animated textures you only need to check for the base texture.
Return value
Returns true if the ceiling texture of the sector the calling actor is in matches the name in the string of the ACS function, false otherwise.
Examples
This script simply checks to see if the ceiling texture is using the “F_SKY1” texture and prints a message accordingly.
if (CheckActorCeilingTexture(0, "F_SKY1")) print (s:"You're outside!"); else print (s:"You're inside!");
See also
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.