SetBodyBag(object, int)

From NWN Lexicon
Jump to navigationJump to search

Gets the creature or placeable body bag type.

void SetBodyBag(
    object oObject,
    int nBodyBag
);

Parameters

oObject
A creature or placeable object
nBodyBag
A bodybag.2da line entry

Description

Sets the creature or placeable body bag type (bodybag.2da entry)


Remarks

If nBodyBag is set to 0 (default) then it will use the body bag assigned to the appearance.2da line.

Body bags for placeables are referenced as the placeables "Treasure Model" in the toolset.

Note lootable creatures (see GetLootable/SetLootable) do not leave body bags as such. See bodybag.2da info.


Version

This function was added in 1.89.8193.37 of NWN:EE.

Example

See Also

functions:

GetBodyBag