Determines the race of a creature.
The creature whose race we are interested in.
Returns the racial type (RACIAL_TYPE_*) of oCreature and RACIAL_TYPE_INVALID If oCreature is invalid.
this is most useful, no, the best function, if only, for getting their race. It merely returns a value from the racialtypes.2da file, and so new races can be added in successfully.
This is widely used in most conversations, and places where race relations comes into play. Giving a special conversation option to certain races, and getting NPC's to react according to race, it usually a good way to add some depth to a world.
1.64 makes sure that RACIAL_TYPE_INVALID is returned for any invalid object type when using this function.
// Dwarves go to "MORIA",
// Everybody else goes to the default transition
// (I know, stupid example, but still...)
oTarget = GetObjectByTag("MORIA");
oTarget = GetTransitionTarget(OBJECT_SELF);
author: Tom Cassiotis, editor: Jasperre, additional contributor(s): Lilac Soul, Jasperre