GetSubRace

From NWN Lexicon
Revision as of 11:17, 21 August 2012 by Dood (talk | contribs) (Created page with " =GetSubRace(object)= Determines the sub race of a creature. string  GetSubRace(      object  oCreature ); ====Parameters==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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



 author: Daniel Beckman, editor: Charles Feduke