GetInventoryWeight

From GECK
(Redirected from GetInvWeight)
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

Returns the total weight of items in the inventory of a reference. The optional "playable" parameter excludes non-playable items.

Syntax

[help]
(float) [actorRef].GetInventoryWeight playable:bool 

Or:

(float) [actorRef].GetInvWeight playable:bool

Example

set fWeight to PlayerRef.GetInvWeight

Will return the combined weight of all the player's items.

set fWeight to RoseofSharonCassidyREF.GetInvWeight 1

Will return the combined weight of all Cass's playable items.

See Also