bool CheckActorClass(int tid, str class)
Returns TRUE if the first thing with the given tid is of the given class (EDF thingtype or ZDoom compatname).