GetActorClass

From ZDoom Wiki
Jump to navigation Jump to search

str GetActorClass (int tid);

Usage

Retrieves the class name of an actor with the specified tid. If tid is 0, it retrieves the class name of the activator of the script.

Parameters

  • tid: The tid of the actor to retrieve its class name.

Return Value

Returns the class name of the actor as a string.

Examples

This is the same example from this function, only much simpler.

script 1 (int tid)
{
    PrintBold(s:"Look out for the ", s:GetActorClass(tid), s:"!");
}

See also