GetBodyBag(object)

From NWN Lexicon
Jump to navigationJump to search

Gets the creature or placeable body bag type.

int GetBodyBag(
    object oObject
);

Parameters

oObject
A creature or placeable object


Description

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

Returns -1 on error.


Remarks

If nBodyBag is set to 0 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:

SetBodyBag