Difference between revisions of "GetTotalItemWeight - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Bot Owned
imported>Cdcooley
 
Line 21: Line 21:


== Notes ==
== Notes ==
* This function only works when run on the player, using it on any other actor or container reference will return a 0.
* This function now works correctly on all containers and actors starting with SKSE version 1.7.2.


== See Also ==
== See Also ==

Latest revision as of 23:23, 21 March 2015

SKSE Member of: ObjectReference Script

This Function will return the total item weight of a ObjectReference.

Syntax[edit | edit source]

float Function GetTotalItemWeight() native

Return Value[edit | edit source]

Returns the total item weight of a ObjectReference.

Examples[edit | edit source]

Debug.Trace("The items the player is currently carrying weigh a combined total of " + Game.GetPlayer().GetTotalItemWeight())

Notes[edit | edit source]

  • This function now works correctly on all containers and actors starting with SKSE version 1.7.2.

See Also[edit | edit source]