GetWeight - Form

From the CreationKit Wiki
Revision as of 02:32, 10 May 2012 by imported>Fg109 (Created page for GetWeight)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Form Script

Returns the weight of this form.

Syntax

float Function GetWeight() native

Parameters

None

Return Value

The weight of this form, or 0.0 if it doesn't have a value.

Examples

if Game.GetPlayer().GetEquippedWeapon().GetWeight() > 25.0
  Debug.Trace("Your weapon is heavy!")
endIf

Notes

  • Returns 0.0 when used on actors, even though actors have weight.

See Also