Difference between revisions of "GetTotalItemWeight - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Bot Owned
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ObjectReference Script This Function will return the total item weight of a ObjectRefe...")
 
imported>Cdcooley
 
(2 intermediate revisions by one other user not shown)
Line 17: Line 17:


<source lang="papyrus">
<source lang="papyrus">
Debug.Trace("The items The Player is currently carrying weight a combined total of " + Game.GetPlayer().GetTotalItemWeight())
Debug.Trace("The items the player is currently carrying weigh a combined total of " + Game.GetPlayer().GetTotalItemWeight())
 
</source>
</source>


== 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]