Morrowind Mod:XGetEncumb

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function added by MWSE.

XGetEncumb returns the total weight of all objects in the inventory of a container, NPC, or creature. Levelled list items don't have a weight but they are assigned a weight of 0.001 by this fnction. If any of the items in the group are respawning items then the resulting weight will be negative.

Syntax[edit]

encumberance (float): ref->xGetEncumb

Example[edit]

long ref
long encumberance

setx encumberance to ref->xGetEncumb

See Also[edit]

xGetOwner
xGetWeight
xGetValue
xGetQuality
xGetCondition
xGetMaxCondition
xGetCharge
xGetMaxCharge
xSetValue
xSetWeight
xSetQuality
xSetCondition
xSetMaxCondition
xSetCharge
xSetMaxCharge