CheckActorCeilingTexture

From ZDoom Wiki

Jump to: navigation, search

int CheckActorCeilingTexture (int tid, str texture)
(development version only)

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.

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!");
    }
Personal tools