GetColor

From NWN Lexicon

Contents

[edit] GetColor(object, int)

Gets the color assigned to the specified color channel.

int GetColor(
    object oObject,
    int nColorChannel
);

[edit] Parameters

oObject

The object from which you are obtaining the color.

nColorChannel

The COLOR_CHANNEL_* that you want to get the color value of.


[edit] Description

Gets the color assigned to the specified color channel.

Returns -1 on error.



[edit] Remarks

oObject must be a creature that has been assigned a model that has changeable color channels, such as those used for the playable races.


nColorChannel can be any of the following channels: COLOR_CHANNEL_SKIN, COLOR_CHANNEL_HAIR, COLOR_CHANNEL_TATTOO_1, COLOR_CHANNEL_TATTOO_2.



[edit] Version

1.69

[edit] See Also

functions: 

SetColor

constants: 

COLOR_CHANNEL_*

other: 

Color Charts



author: Mistress, contributor: Cereborn

Personal tools
Categories