Morrowind Mod:XSetWeight

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

A function added by MWSE.

XSetWeight sets the weight of the object. Returns 1 if successful, 0 if failed.

In v0.9.4a, this function didn't work with lockpicks. This is fixed in the MWSE update released by Merzasphor.

Syntax[edit]

success (long): ref->xSetWeight weight (float)

Example[edit]

long success
long itemRef
float weight

set weight to 10
setx success to itemRef->xSetWeight weight

See Also[edit]

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