GetAlignmentGoodEvil(object)

From NWN Lexicon
Jump to navigationJump to search

Determines the disposition of a creature.

int GetAlignmentGoodEvil(
    object oCreature
);

Parameters

oCreature
Target creature to retrieve the alignment of.


Description

Returns an ALIGNMENT_* constant to represent oCreature's good/evil alignment, or returns -1 if oCreature is not a valid target (OBJECT_INVALID).


See Also

functions: 

GetLawChaosValue

constants: 

ALIGNMENT_* Constants



 author: Charles Feduke