SetCreatureBodyPart(int, int, object)

Sets the body part model to be used on the creature specified.

void SetCreatureBodyPart(
    int nPart,
    int nModelNumber,
    object oCreature = OBJECT_SELF
);

Parameters

nPart

CREATURE_PART_*

nModelNumber

CREATURE_MODEL_TYPE_*

oCreature

The creature to change the body part for. (Default: OBJECT_SELF)


Description

Sets the body part model to be used on the creature specified.

Only part based creature appearance types are supported. i.e. The model types for the playable races ('P') in the appearance.2da.

The model names for parts need to be in the following format: p<m/f><race letter><phenotype>_<body part><model number>.mdl

CREATURE_MODEL_TYPE_SKIN is not for use on shoulders, pelvis or head.

CREATURE_MODEL_TYPE_TATTOO is for body parts that support tattoos, i.e. not heads/feet/hands.

CREATURE_MODEL_TYPE_UNDEAD is the undead models that only exist for the right arm parts.



Version

1.67

See Also

functions:  GetCreatureBodyPart
constants:  CREATURE_MODEL_TYPE* | CREATURE_PART_*
categories:  Action on Object Functions


author: Mistress