GetSubRace(object)

Determines the sub race of a creature.

string GetSubRace(
    object oCreature
);

Parameters

oCreature

Target creature.


Description

Returns the name of oCreature's sub race. Returns an empty string if oCreature is invalid or the creature has no sub race.



Version

1.22

Example

void main()
{
    // speak this creature's subrace
    string sSubRace = GetSubRace(OBJECT_SELF);
    SpeakString(sSubRace);
}

See Also

functions: SetSubRace
categories: Get Data from Creature Functions


 author: Daniel Beckman, editor: Charles Feduke