From ZDoom Wiki
Jump to: navigation, search
Note: This feature is for ZScript only.

name GetSpecies ()


This returns the species of the calling actor.

Return Value

The species of the actor, as a name (this can be compared to a string, with one exception - the case-insensitive string comparison operator (~==) will not work).


This Zombieman will check if the target is a DoomImp (using the overriding of ZScript Virtual Functions), and if it is, execute code.

Class ImpChecker : Zombieman {

    override void Tick() {
        if (target && target.GetSpecies() == "DoomImp") {
            // Do something - for example, have an enemy act differently to different targets