Difference between revisions of "GetWeight - Form"

From the Fallout4 CreationKit Wiki
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 an actor.
; 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

See Also

Form Script