GetSubRace

From NWN Lexicon



Contents

[edit] GetSubRace(object)

Determines the sub race of a creature.

string GetSubRace(
    object oCreature
);

[edit] Parameters

oCreature

Target creature.


[edit] Description

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



[edit] Version

1.22

[edit] Example

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

[edit] See Also

functions: 

SetSubRace



 author: Daniel Beckman, editor: Charles Feduke
 

Personal tools
Categories