GetWeight - Form

From Creation Kit
Jump to: navigation, search

SKSE Member of: Form Script

Returns the weight of this form. (This function requires SKSE)

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