Difference between revisions of "GetWeight - Form"
Jump to navigation
Jump to search
imported>Qazaaq (added f4se member) |
imported>Qazaaq m (fixed papyrus example comment) |
||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Get the weight of | ; Get the weight of a book item. | ||
float weight = myBook.GetWeight() | float weight = myBook.GetWeight() | ||
Debug.Trace("This book weighs " + weight + " units.") | Debug.Trace("This book weighs " + weight + " units.") |
Revision as of 01:08, 22 October 2017
Member of: Form Script
Requires F4SE: 0.03.1
Gets the weight of this form.
Syntax
float Function GetWeight() Native
Parameters
None
Return Value
The weight of this form.
Examples
; Get the weight of a book item.
float weight = myBook.GetWeight()
Debug.Trace("This book weighs " + weight + " units.")
Notes
None